Skip to content

The minSdk version should not be declared in the android manifest file #1316

@vtrifonov

Description

@vtrifonov

If you open platforms/android folder with Android Studio you get the following error:

ERROR: The minSdk version should not be declared in the android manifest file. You can move the version from the manifest to the defaultConfig in the build.gradle file.
Remove minSdkVersion and sync project
Affected Modules: app

WARNING: The targetSdk version should not be declared in the android manifest file. You can move the version from the manifest to the defaultConfig in the build.gradle file.
Remove targetSdkVersion and sync project
Affected Modules: app

So to fix it, the minSdkVersion and targetSdkVersion need to be removed from the manifest file in the project template. Both of them should be set through the gradle file.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions