【问题标题】:Eclipse export Signed APK fails with SDK 12 and Compatibility LIbraryEclipse 导出签名的 APK 因 SDK 12 和兼容性库而失败
【发布时间】:2011-11-02 19:29:33
【问题描述】:

我正在尝试导出我的 Android 应用程序的签名混淆版本,但我不断收到此错误。我最近添加了 v4 兼容性库,从那时起就无法导出签名的 APK。任何帮助将不胜感激。

注意事项:使用 SDK 12 和默认的 proguard.cfg

这是控制台输出:

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 CompatHoneycomb -keep class android.support.v4. { *;我需要添加:-dontwarn **CompatCreatorHoneycombMR2

标签: java android proguard


【解决方案1】:

-dontwarn **CompatCreatorHoneycombMR2 就是答案。

【讨论】:

  • 这真是没有办法。这只是不显示消息,但不能解决实际问题。
猜你喜欢
  • 2012-08-21
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2015-05-07
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2017-09-17
相关资源
最近更新 更多