简体   繁体   中英

Eclipse export Signed APK fails with SDK 12 and Compatibility LIbrary

I'm trying to export a signed obfuscated version of my Android application and I keep getting this error. I recently added the v4 compatibility library and haven't been able to export a signed APK since then. Any help would be appreciated.

Notes: Using SDK 12 and the default proguard.cfg

Here's the console output:

Proguard returned with error code 1. See console
Warning: android.support.v4.os.ParcelableCompatCreatorHoneycombMR2: can't find superclass or interface android.os.Parcelable$ClassLoaderCreator
Warning: android.support.v4.os.ParcelableCompatCreatorHoneycombMR2: can't find referenced class android.os.Parcelable$ClassLoaderCreator
Warning: android.support.v4.os.ParcelableCompatCreatorHoneycombMR2: can't find referenced class android.os.Parcelable$ClassLoaderCreator
Warning: there were 3 unresolved references to classes or interfaces.
You may need to specify additional library jars (using '-libraryjars'),
or perhaps the '-dontskipnonpubliclibraryclasses' option.
java.io.IOException: Please correct the above warnings first.
    at proguard.Initializer.execute(Initializer.java:308)
    at proguard.ProGuard.initialize(ProGuard.java:210)
    at proguard.ProGuard.execute(ProGuard.java:85)
    at proguard.ProGuard.main(ProGuard.java:499)

-dontwarn ** CompatCreatorHoneycombMR2就是答案。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM