Can anybody explain this error to me?:
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.
I'm building from within a full Android source base, and there's an Android.mk file being used for the build.
The resulting apk seems healthy enough, but I don't like unexplained warning messages in my builds.
I've searched up and down my source tree and those four variables are defined nowhere but in my AndroidManifest.xml file.
in Android Studio these variables are defined in build.gradle file
defaultConfig {
applicationId 'org.example.'
minSdkVersion 11
targetSdkVersion 21
versionCode 1
versionName "1.0 Beta"
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With