Chris
Chris

Reputation: 339

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

Gradle Sync Errors are coming up on my build.gradle file for a module I imported called BaseGameUtils saying The minSdk version should not be declared in the android manifest file. I don't call this at all from what I can see, and I don't in the Android Manifest either?

But here is my build.gradle file. Please help!

Upvotes: 20

Views: 33751

Answers (3)

c0nstruct0r
c0nstruct0r

Reputation: 196

I had an issue when trying to use androidx.security on minimum SDK version 19. The lint command threw an exception on the <uses-sdk> tag. I found my answer here: https://stackoverflow.com/a/27175950/1651697 It turns out I didn't need to define the android:minSdkVersion, just override the <uses-sdk> tag.

Upvotes: 1

tnfaid
tnfaid

Reputation: 71

currently, I'm using openCV, my solution is to change minsdk in build.gradle for module:app and build.gradle module:OpenCVLibrary with the same version. i hope it's work for you

Upvotes: 0

Anubhav Gupta
Anubhav Gupta

Reputation: 2000

Inside your manifest there must be inside which minsdkversion might have been written. Just remove <uses-sdk>....</uses-sdk>

Upvotes: 35

Related Questions