无法签署我的 LIbGDX 申请

Can't signature my LIbGDX Application

我从 github 复制了一个项目并更改了其中的一些内容。现在我尝试生成一个签名的 APK,但它不起作用,因为我无法选择选择字段。如果您看到我要生成 APK 的 Field 的图片,也许您会更好地理解我的意思。 它不起作用的原因是什么?我该如何解决我的问题?

图片如下:https://i.stack.imgur.com/9TdPL.png

我希望你有一些旧版本的 android gradle plugin,更新到最新版本可能会解决你的问题。

build.gradle 文件中有 buildscript 部分

buildscript {
    repositories {
        mavenLocal()
        mavenCentral()
        maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
        jcenter()
    }
    dependencies {  
        classpath 'com.android.tools.build:gradle:2.3.2'    // <- update version  
    }
}

刷新所有 gradle 个项目。


根据开发人员的说法 guide

APK 签名方案 v2 提供:

  1. 更快的应用安装时间

  2. 更多保护以防止未经授权更改 APK 文件。

推荐使用 APK 签名方案 v2,但不是强制性的

Although we recommend applying APK Signature Scheme v2 to your app, this new scheme is not mandatory. If your app doesn't build properly when using APK Signature Scheme v2, you can disable the new scheme.