I'm getting error: “:BaseGameUtils:processDebugAndroidTestManifest” on Android Studio startup only

微笑、不失礼 提交于 2020-01-14 14:04:55

问题


My android app is using BaseGameUtils and every time I start Android Studio I get the following error:

Error:Execution failed for task ':BaseGameUtils:processDebugAndroidTestManifest'. java.lang.RuntimeException: Manifest merger failed : uses-sdk:minSdkVersion 1 cannot be smaller than version 7 declared in library [com.android.support:appcompat-v7:20.0.0] F:\Programowo\androidapps\FixMath\BaseGameUtils\build\intermediates\exploded-aar\com.android.support\appcompat-v7\20.0.0\AndroidManifest.xml Suggestion: use tools:overrideLibrary="android.support.v7.appcompat" to force usage

I'm getting this error only once on startup Android Studio.

That's how look my project structure app project structure


回答1:


I just add this line in BaseGameUtils AndroidManifest.xml

<uses-sdk android:minSdkVersion="14" />



回答2:


Just add this line

<uses-sdk tools:overrideLibrary="com.google.android.gms.all"/>

on your app --> manifest --> AndroidManifest.xml file

That error means that the imported library com.android.support:appcompat-v7:20.0.0 has a minSdkVersion specified as 7 whereas you seem to be targeting lower versions



来源:https://stackoverflow.com/questions/36334839/im-getting-error-basegameutilsprocessdebugandroidtestmanifest-on-android-s

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!