[英]How do I add an 'aar' to my existing android project in Android Studio
I have a aar
module by the name of app-debug.aar
. 我有一个名为
app-debug.aar
的aar
模块。 I need to add this in my existing android project. 我需要在现有的Android项目中添加它。 I am using Android Studio 1.2.2.
我正在使用Android Studio 1.2.2。 I have tried lot of approaches which were suggested like these
我尝试了很多这样的方法
How to manually include external aar package using new Gradle Android Build System 如何使用新的Gradle Android Build System手动包含外部aar包
When I am trying to use the answers in this post, I mostly come across this issue 当我尝试使用本文中的答案时,我大多会遇到此问题
Error:Execution failed for task ':app:processIcanpayDebugResources'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Users/Shaik/Library/Android/sdk/build-tools/21.1.2/aapt'' finished with non-zero exit value 1
And when I seacrched for that i came to know that I had to add 当我为此而苦苦挣扎时,我知道我必须补充
defaultConfig {
multiDexEnabled true
}
But still I get the same error and I am not successful in adding the aar
module to my project. 但是仍然出现相同的错误,并且无法成功将
aar
模块添加到我的项目中。 Can anyone let me know how can I achieve it. 任何人都可以让我知道如何实现这一目标。 Thanks in advance.
提前致谢。
我认为您正在寻找这样的东西(对我有用 ): http : //kevinpelgrims.com/blog/2014/05/18/reference-a-local-aar-in-your-android-project/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.