Proguard Errors When Exporting an Android Project After Upgrading to ADT 20

After upgrading to ADT 20, I can no longer successfully export any of my Android projects. I get:

Proguard returned with error code 1. See console

In the console, I get tons of warnings can't find referenced classand sometimes a warning can't find superclass or interface. At the end of the warnings, I get something like this:

    You should check if you need to specify additional program jars.
Warning: there were 199 unresolved references to classes or interfaces.
    You may need to specify additional library jars (using '-libraryjars').
java.io.IOException: Please correct the above warnings first.
 at proguard.Initializer.execute(Initializer.java:321)
 at proguard.ProGuard.initialize(ProGuard.java:211)
 at proguard.ProGuard.execute(ProGuard.java:86)
 at proguard.ProGuard.main(ProGuard.java:492)

Every time I try to build, I get a different number of warnings (this is not very consistent). In addition, when I perform a cleanup before exporting, the export completes without any warning, but the resulting APK fails to start up often because of ClassNotFoundException.

My proguard-project.txtcontains the necessary rules -keep classfor the Android support library and ActionBarSherlock.

20- ADT. (, , , ), .

-libraryjars / -dontwarn, SO, . , APK .

?

+5
3

AAPT ,

<fragment android:name"..." />

<fragment class="..." />

AAPT, , .

+5

ADT 20 aapt (. -G), proguard, , .

proguard . , , , , . keep , .apks , .

, , - Tools 20 ( proguard-android.txt), ADT 18. ADT 20, proguard, project.properties, proguard, keep from aapt -G. , ant -G.

( - . http://code.google.com/p/android/issues/detail?id=35107 )

+4

, Eclipse ADT, . ProGuard ( ). , ( ) ProGuard. , Ant ( "ant release" ). .

0
source

All Articles