Solution to the warning: Can't Find referenced class problem after proguard. cfg is used in Android project packaging in eclipse

Source: Internet
Author: User

 4. After talking about it for so long, I finally began to talk about the solution:

In fact, the referenced class cannot be found in a third-party package. In many cases, we only need to disrupt our own code. If the code of a third-party package needs to be disrupted, don't worry about it. Hee hee, this is called "only sweep the snow in front of your own door, render others on the cream ",

We can use
-Dontwarn com. XX. BBB .**
-Keep class com. XX. BBB .**{*;}

Parameter to keep the classes in the third-party library intact.-dontwarn and-keep are used in combination, meaningKeep COM. XX. bbb. ** all the classes in this package are not confused with all the methods, and then it is also called proguard. Do not warn that com. XX. bbb. ** references related to the class in this package.
After configuration, package again. Everything is OK! And the program runs correctly.

 

 

Example:

-Dontwarn net. youmi. Android .**
-Keep class net. youmi. Android .**{*;}

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.