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

Chris picture Chris · Aug 11, 2018 · Viewed 28.7k times · Source

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!

Answer

Anubhav Gupta picture Anubhav Gupta · Aug 11, 2018

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