使用 SDK 12 和兼容性库时 Eclipse 导出签名 APK 失败

发布于 2024-11-26 10:28:59 字数 1112 浏览 1 评论 0原文

我正在尝试导出 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)

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)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

深海蓝天 2024-12-03 10:28:59

-dontwarn **CompatCreatorHoneycombMR2 就是答案。

-dontwarn **CompatCreatorHoneycombMR2 was the answer.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文