Android--------Obfuscation package error (Warning-innerclass annotations is missing corresponding enclosingmember annotations)

Source: Internet
Author: User

Recently doing Android obfuscation pack has encountered some problems with Android Sdutio 3.1 version packaged

The error is as follows:

Android Studio Warning-innerclass annotations is missing corresponding enclosingmember annotations

Innerclass annotations is missing corresponding enclosingmember annotations. Such innerclass annotations is ignored.
Message{kind=warning, text=innerclass annotations is missing corresponding enclosingmember annotations. Such innerclass annotations is ignored., Sources=[unknown source file], tool Name=optional.of (D8)}

Solution Solutions

Add the following code to the Build.gradle

Buildtypes {

Release {

lintoptions {

Checkreleasebuilds false

Abortonerror false

}

}

}

Packaging errors such as

See Figure 1

There must be warning in front of the compile time because of the error. Turned a bit, sure enough to find a lot of warning.

33 warning with a bag

com.yintong.secure Com.icbc.pay

Next, just add the dontwarn of this library to Proguard-rules.pro.

-dontwarn Com.yintong.secure.**-dontwarn com.icbc.pay.**

Then re-build->generate signed, you can generate app-release.apk.

Android--------Obfuscation package error (Warning-innerclass annotations is missing corresponding enclosingmember annotations)

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.