如何使用本地aar依赖关系? [英] How to use local aar dependency?
本文介绍了如何使用本地aar依赖关系?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在Google上搜索了本地aar,每个人都说它可以工作,但是在android studio 1.1.0上却行不通.
i google about local aar,every one say it can work,but it don't work at android studio 1.1.0.
我尝试使用:
compile fileTree(dir: 'libs', include: ['*.aar'])
但提示:
Warning:Project app: Only Jar-type local dependencies are supported. Cannot handle: /Users/kycq/AndroidStudioProjects/QingTaJiao/app/libs/KycqBasic-release.aar
我应该如何使用本地aar? 如果我应该使用:
how should i do to use local aar? if i should use:
compile 'com.example.library:library:1.0.0@aar'
该怎么做?
推荐答案
我遇到了同样的错误.
这是唯一帮助我的事情:
This was the only thing that helped me:
dependencies {
compile(name:'nameOfYourAARFileWithoutExtension', ext:'aar')
}
repositories{
flatDir{
dirs 'libs'
}
}
参考:使用"flatDirs"将本地.aar文件添加到Gradle构建中.不能正常工作
这篇关于如何使用本地aar依赖关系?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文