【问题标题】:AndroidStudio Exception when starting android in a libgdx project在 libgdx 项目中启动 android 时出现 AndroidStudio 异常
【发布时间】:2018-05-19 14:51:20
【问题描述】:

在 Android Studio 3.0.1 中运行 android gradle 任务时出现异常。我的项目是用 libgdx 构建的。我的桌面 gradle 任务运行完美。

org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':android:validateSigningDebug'.

根本原因在哪里

Caused by: java.lang.SecurityException: class "org.bouncycastle.jcajce.provider.symmetric.IDEA$Mappings"'s signer information does not match signer information of other classes in the same package

我完全不知道如何解决这个问题。

【问题讨论】:

  • Java SecurityException: signer information does not match 的可能重复项特别是这个答案“在我的情况下,我在我的库路径中复制了 BouncyCastle 的 JAR 版本”。仔细检查您的库路径,如果不是这种情况,请查看该问题的其他答案。
  • 我的解决方案是创建一个调试密钥存储。

标签: libgdx android-studio-3.0


【解决方案1】:

Mar Dev 给了我正确的提示。我做到了:

cd ~/.android
keytool -genkey -v -keystore debug.keystore -alias androiddebugkey -keyalg RSA -keysize 2048 -validity 10000
keytool -importkeystore -srckeystore debug.keystore -destkeystore debug.keystore -deststoretype pkcs12

然后在AndroidStudio中我遵循Where is debug.keystore in Android Studio的接受答案

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2012-07-17
    • 1970-01-01
    • 2021-08-17
    • 2012-06-13
    • 1970-01-01
    • 2014-04-12
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多