Warning: AndroidManifest.xml already defines versionCode

Can someone 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 am building from the full source database of Android, and it uses the Android.mk file to build.

The resulting apk seems healthy enough, but I don't like the inexplicable warning messages in my builds.

I searched up and down the source tree, and these four variables are not defined anywhere, but in my AndroidManifest.xml file.

+6
source share
1 answer

in Android Studio, these variables are defined in the build.gradle file

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

All Articles