Android Studio innerclass annotations is missing corresponding enclosingmember annotations. Such Innerclass Annota

Source: Internet
Author: User

If your project uses a note plug-in such as Butterknife upgrade 3.1 after the packaging compile the following error prompt

Innerclass annotations is missing corresponding enclosingmember annotations. Such innerclass annotations is ignored.

This should be due to internal class annotations such as annotations that are used in internal classes are ignored when packaging and compiling

Although it can be compiled and installed to the phone can run normally but for some obsessive-compulsive disorder, I always feel very uncomfortable, so find Niang find solutions because of the 3.1 update soon many domestic small partners have no choice to update so the corresponding post in the country is also relatively small below is a foreign site on the other people gave Interim solution

Add the following code to the Build.gradle

Buildtypes {

Release {

lintoptions {

Checkreleasebuilds false

Abortonerror false

}

}

}

This issue is a bug in the as 3.1 because the public class is not allowed to implements Java.lang.annotation.Annotation this is the official reason now they have fixed the issue in the 3.2 version, there are Interested small partners can go to download the latest version of Android Studio 3.2



Panda struggling to drop
Links: Https://www.jianshu.com/p/14ea74ef7fe8
Source: Pinterest
The copyright of the book is owned by the author, and any form of reprint should be contacted by the author for authorization and attribution.

Android Studio innerclass annotations is missing corresponding enclosingmember annotations. Such Innerclass Annota

Related Article

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.