Android compilation error, ignoring innerclasses attribute for an anonymous inner class

Source: Internet
Author: User

Today in the Android project, add a third party package, a compilation error.
The error is as follows:
[2012-01-13 14:51:25-xxx] Dx warning:ignoring innerclasses attribute for an anonymous inner class
(org.xxx.xxx.xxx$1) that doesn ' t come with an
Associated Enclosingmethod attribute. This class is probably produced by a
compiler that does not target the modern. class file format. The recommended
Solution is to recompile the class from source, using a up-to-date compiler
And without specifying any "-target" type options. The consequence of ignoring
This warning is a reflective operations on this class would incorrectly
Indicate that it's *not* an inner class.


Failed to load properties file for project ' xxx '


So I focused on the possibility that a third-party package might add up to the wrong situation. So according to the online statement, the package has been added again or error.

The final discovery is the issue of the debug certificate. I saw it in the C:\Users\xxx\.android\debug.keystore directory.

You can see that the date of Debug.keystore is 2011-1-11, and today is 2012-1-13 Day, as expected, as online, more than a year, the debug certificate expired.

So I delete this file, recompile run, sure enough, and this time the directory has been regenerated Debug.keystore, the date is today.

If you want to reproduce the problem, it is also very simple, you must clear the project, otherwise it will not go to the directory to load the certificate, even if you change this file to 2010 is not good, and you clear,

The project reloads the certificate and detects the validity period of the certificate. We hope to help you.

Android compilation error, ignoring innerclasses attribute for an anonymous inner class

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.