导入城市飞艇Android Studio中给出了编译的问题? [英] Importing Urban Airship in Android Studio gives compile issues?
问题描述
我是新来的Android Studio和我要实现城市飞艇在我的项目之一。我跟着他们的网站与.aar文件中的例子,我最终得到这个错误。
I'm new to Android Studio and i want to implement Urban Airship in one of my projects. I followed the example on their website with the .aar file and I ended up getting this error.
Error: [/Users/AndroidstudioProjects/MyApplication/app/build/intermediates/exploded-aar/com.urbanairship/urbanairship-lib/5.1.0/AndroidManifest.xml:8]
Invalid instruction 'overrideLibrary', valid instructions are : REMOVE,REPLACE,STRICT
纠正我,如果我错了,但不这意味着他们在其清单文件的问题?还是我完全脱离了蓝色的?如果是这样,任何人对如何实现它的一个很好的例子吗?
Correct me if I'm wrong but doesn't this mean that they have issues in their manifest file? Or am I completely out in the blue? If so, do anyone have a good example on how to implement it?
推荐答案
市区飞艇SDK构建针对谷歌播放需要的Android API 9,而城市飞艇与6+兼容的服务。这就是为什么我们需要重写库版本。什么是您使用的gradle的Android版本的插件?您需要使用13.3或更高版本。见<一href=\"http://tools.android.com/tech-docs/new-build-system\">http://tools.android.com/tech-docs/new-build-system.
The Urban Airship SDK builds against Google Play Services that requires Android API 9, while Urban Airship is compatible with 6+. That is why we need the override library version. What android gradle plugin version are you using? You need to use 13.3 or greater. See http://tools.android.com/tech-docs/new-build-system.
在项目的build.gradle文件:
In the projects build.gradle file:
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.13.+'
}
}
这篇关于导入城市飞艇Android Studio中给出了编译的问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!