在运行时获取debugmanifest错误 [英] Getting a debugmanifest error at runtime

查看:185
本文介绍了在运行时获取debugmanifest错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经将一个android项目导入到Android studio中(我是android studio的第一次用户..之前是在eclipse上工作的)。所以在构建项目时我没有任何错误。但是,在运行代码时,出现以下错误:

 错误:任务':app:processDebugManifest'的执行失败。 
>清单合并失败:uses-sdk:minSdkVersion 8不能小于库com.google.android.gms中声明的版本9:play-services:6.5.87

我使用谷歌地图,因此我需要谷歌播放服务。这个项目在eclipse中工作正常,但在Android studio中没有。如何解决这个错误?

解决方案

尝试在android studio中设置您的build.gradle(module:app)..

在android studio minSdkVersion不是放在android清单中,而是放在gradle ..
中的解释请参阅 在您将应用程序从eclipse移动到Gradle后再次声明您的Google Play服务,请参阅以下更多解释添加没有资源的库


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?

解决方案

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

这篇关于在运行时获取debugmanifest错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆