gpt4 book ai didi

android - 警告 : AndroidManifest. xml 已经定义了 versionCode

转载 作者:塔克拉玛干 更新时间:2023-11-02 21:16:26 27 4
gpt4 key购买 nike

任何人都可以向我解释这个错误吗?:

Warning: AndroidManifest.xml already defines versionCode (in http://schemas.android.com/apk/res/android); using existing value in manifest.
Warning: AndroidManifest.xml already defines versionName (in http://schemas.android.com/apk/res/android); using existing value in manifest.
Warning: AndroidManifest.xml already defines minSdkVersion (in http://schemas.android.com/apk/res/android); using existing value in manifest.
Warning: AndroidManifest.xml already defines targetSdkVersion (in http://schemas.android.com/apk/res/android); using existing value in manifest.

我在完整的 Android 源代码库中构建,并且有一个 Android.mk 文件用于构建。

生成的 apk 看起来足够健康,但我不喜欢在我的构建中出现无法解释的警告消息。

我上下搜索了我的源代码树,这四个变量在我的 AndroidManifest.xml 文件中没有定义。

最佳答案

在 Android Studio 中,这些变量在 build.gradle 文件中定义

    defaultConfig {
applicationId 'org.example.'
minSdkVersion 11
targetSdkVersion 21
versionCode 1
versionName "1.0 Beta"
}

关于android - 警告 : AndroidManifest. xml 已经定义了 versionCode,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22366927/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com