The warning:can& #39 that occurs when Eclipse packs an Android project with proguard.cfg; t find referenced class problem resolution

Source: Internet
Author: User

Warning:can ' t find superclass or interface
Warning:can ' t find referenced class

The solution to these two problems:

1. Use the "-libraryjars package path" To specify the third-party jar package that you have introduced in your project.
2. If you still have an error, make sure that the class for the error is not used in your project, use the "-dontwarn class name to express" mask warning.


Finished? But I also want to ask: the first step is done after the error, and this class in my project really practical, can not use "-dontwarn." Shielding warning AH??


The solution is as follows:

In fact, the reference to the class is not found in the third-party package, and very often we just have to disrupt their own code, the third-party package of the code is not to be disrupted. Hehe, this is called "just sweep your own door snow." Don't care for others to frost on the tiles. "

we are able to use
-dontwarn com.xx.bbb.**
-keep class com.xx.bbb.** {*;}

to maintain classes in a third-party library without mess,-dontwarn and-keep are used together, meaningKeep com.xx.bbb.** All the classes and all the methods in this package without confusion, and then call Proguard do not warn you that you cannot find a reference to the class com.xx.bbb.** the package.
after the configuration is ready. Packing again, everything ok! And the program can execute correctly

The warning:can& #39 that occurs when Eclipse packs an Android project with proguard.cfg; t find referenced class problem resolution

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.