Getting a debugmanifest error at runtime

纵饮孤独 提交于 2019-12-25 04:44:12

问题


I have imported an android project into Android studio ( I am a first time user of android studio.. was previously working on eclipse). So when building the project I get no errors. When running the code, however, I am getting the following error

Error:Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed : uses-sdk:minSdkVersion 8 cannot be smaller than version 9 declared in library com.google.android.gms:play-services:6.5.87

I make use of google maps and hence I require the google play services. This project was working fine in eclipse, but not here in Android studio. How do I resolve this error?


回答1:


Try to set up your build.gradle(module:app) in android studio..

In android studio minSdkVersion is not to be put in android manifest but in gradle.. for explanation see this

look's like you need to declare again you Google Play Service in gradle since you move the app from eclipse, see this for more explanation Adding libraries without resources




回答2:


Had exactly the same issues. The Google Play SDK was probably updated when you migrated to Android Studio and Grade. As far as I understand the latest Google Play Services requires at least version 9 for debugging.

To test your app when using the Google Play services SDK, you must use either:

A compatible Android device that runs Android 2.3 or higher and includes Google Play Store.

...

http://developer.android.com/google/play-services/setup.html



来源:https://stackoverflow.com/questions/27660391/getting-a-debugmanifest-error-at-runtime

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