简体   繁体   English

如何在Android Studio中向现有的android项目添加“ aar”

[英]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.aaraar模块。 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. 提前致谢。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用aar文件的URL在android studio中添加对aar文件的引用? - How do I add a reference to a aar file in android studio using a URL to the aar file? 如何将内置在 aar 中的多个 flutter 模块添加到现有的 android 项目中? - how to add multiple flutter modules built into aar into an existing android project? 如何在我现有的 Android Studio 项目中添加另一个项目? - how to add another project in my existing Android Studio project? 如何在Android Studio 0.3.4中将现有库项目添加到我的项目中 - How to add existing library project to my project in Android Studio 0.3.4 如何将Guava添加到我的Android Studio项目中? - How do I add Guava to my Android Studio project? 我可以在Android Studio中将新包添加到现有项目中吗? - Can I add a new package to my existing project in Android Studio? 如何将android studio项目添加到GitHub上的现有存储库? - How do you add an android studio project to an existing repository on GitHub? 如何将监视模块添加到现有的 Android Studio 项目? - How do you add a watch module to an existing Android Studio project? 如何将现有的.so库添加到Android Studio项目中? - How do you add an existing .so library to an Android Studio project? 如何从“现有的”android studio项目创建* .aar文件(不创建新的android库)? - How to create *.aar file from “existing” android studio project ( Not creating new android library)?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM