简体   繁体   English

无法在IntelliJ上生成签名的APK

[英]Failed to generate signed apk on intellij

I created an android game using libgdx library on Intellij, and when I try to generate the signed apk I get an error: 我使用Intellij上的libgdx库创建了一个android游戏,当我尝试生成签名的apk时出现错误:

Error:Execution failed for task ':android:lintVitalRelease'.
> originalComplianceLevel

Before that error I had another one which was about the minimum sdk, it had to be 9 but the declared one was 8, but now is fixed. 在该错误之前,我还有另一个与最小sdk有关的错误,它必须为9,但声明的错误为8,但现在已修复。

also my game has ads, the only part of my game that I don't understand because I just copied the code. 我的游戏中也有广告,这是我游戏中唯一不了解的部分,因为我只是复制了代码。

lintOptions {
        checkReleaseBuilds false
        // Or, if you prefer, you can continue to check for errors in release builds,
        // but continue the build even when errors are found:
        abortOnError false
    }

add this in your gradle file under android tag 将此添加到您的gradle文件中的android标签下

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM