android - .apk 签名即使使用 Sun JDK 也会失败(java.lang.NoClassDefFoundError : com. android.jarutils.DebugKeyProvider)

标签 android fedora

我在签署我的 Android 应用程序时遇到一个有趣的问题,无论我是否使用调试 key 。无论我安装到 /usr/bin/{java,keytool,jarsigner} 的 JDK(OpenJDK 还是 Sun 的 JDK),它在编译成功后总是会给出以下输出:

-package-debug-sign:
[apkbuilder] Creating RemoteNotify-debug-unaligned.apk and signing it with a debug key...

BUILD FAILED
/home/ianweller/AndroidSDK/platforms/android-7/templates/android_rules.xml:281: The following error occurred while executing this line:
/home/ianweller/AndroidSDK/platforms/android-7/templates/android_rules.xml:152: java.lang.NoClassDefFoundError: com.android.jarutils.DebugKeyProvider

该应用程序是使用 ADT 插件由 Eclipse 构建和签名的(即使没有安装 Sun 的 JDK)。我在 Fedora 12 上。

我想从 Eclipse 中取出我的代码并将其移动到 git 存储库中,但是无法从 ant 构建它不会允许这种情况发生。

最佳答案

不确定这是否是您的问题,但要注意奇怪的字符,有些字段不能有空格、逗号、句点等...

关于android - .apk 签名即使使用 Sun JDK 也会失败(java.lang.NoClassDefFoundError : com. android.jarutils.DebugKeyProvider),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2792221/

相关文章:

android - 使用 channel ID 时,世博会通知不起作用

android - Android 版 Qt : QtCreator build/deploy error when executing step "Build Android APK"

tomcat - 如何在端口 80 上运行 nexus sonatype?

android - 模拟器 : Error while connecting to socket '127.0.0.1:1970' : 111 -> Connection refused

java - 在 php 中登录到服务器端时在 android 中进行 session 处理

android - 验证程序未将数据保存到Firebase数据库

android - java.lang.SecurityException 在使用 appium 和 adb 绑定(bind)启动某些应用程序时会发生

android - 当应用程序提示用户时唤醒设备

networking - 如何将ipv6地址挂载到linux

c++ - 如何编译程序以使其能够在 32 位 Linux 上使用 >4GB 内存?