- Home /
the min sdk version cannot be specified in the androidmanifest.xml file. you have to remove it.
Please Help ME!!!
I am trying to build my project onto android and I cant, the error comes up with "the min sdk version cannot be specified in the androidmanifest.xml file. you have to remove it."
sometimes it comes up with "could not delete old projectname\temp\gradleout\launcher\build\reports\lint-results-release-fatal.html"
and then it comes up with 243 errors in the console, I'm using unity 2020.1.3f PLEASE HELP
Update: I found the cause but not the solution, I'm trying to setup cloud-once and unity is making me add the google play services scoped registry? and it doesn't let me build but I need it to make cloud-once work. I still don't know
Answer by triplume · Nov 12, 2020 at 04:33 PM
Plugins > Android > Firebase ... > AndroidManifest.xml > Remove <uses-sdk android:minSdkVersion="14"/>
Or just search for "Manifest" to find the file.
Answer by EmmanuelAyilara · Sep 15, 2020 at 06:40 AM
I had same issues recently @N8Squared see file:///C:/Program%20Files/Unity/Hub/Editor/2020.1.3f1/Editor/Data/Documentation/en/Manual/android-gradle-troubleshooting.html
And also try changing the minSDKversion in the manifest to a higher API level. By default you will see "14". If this does not resolve it remove the line of code or try the steps in the link above.,@N8Squared see file:///C:/Program%20Files/Unity/Hub/Editor/2020.1.3f1/Editor/Data/Documentation/en/Manual/android-gradle-troubleshooting.html
And also try changing the minSDKversion in the manifest to a higher API level. By default you will see "14". If this does not resolve it remove the line of code or try the steps in the link above.
manifest file of assets>plugins>Android
PLEASE HELP
Answer by anileapen05 · May 25, 2021 at 02:36 PM
For me it was the androidmanifest.xml in google play games plugin that had
uses-sdk android:minSdkVersion="14"
but my project was targeting android sdk 28 and 29.
so i removed uses-sdk android:minSdkVersion="14" and built.
Worked fine.
manifest file of assets>plugins>Android
PLEASE HELP
Answer by Ahmadounity · May 28, 2021 at 09:18 AM
manifest file of assets>plugins>Android
PLEASE HELP
Firebase is clean. Remove uses-sdk from the second androidmanifest.xml file
When I remove it and build a apk then the apk doesn't run on android device.
Your building issue is solved. Is this is the first time u r running ur app on android device?
Your answer
Follow this Question
Related Questions
Android build "Failed to re-package resources" 2 Answers
can't build android app with facebook sdk 5 Answers
Can't build into Android 2 Answers
Android Application Error Message 0 Answers
unable to merge androidmenifest 1 Answer