赞
踩
既然你搜索了这样的关键字。。证明还是你有点水平的
也可能是这样的关键字:com.android.library 导入aar包
也可能是
也可能是
- Error:svn: E155010: Path 'E:\...\GFishing\other\youkuplayer\libs\YoukuPlayerOpenSDK-release.aar' does not exist
- > Could not resolve all dependencies for configuration ':app:_debugApk'.
- > A problem occurred configuring project ':library'.
- > Could not resolve all dependencies for configuration ':library:_debugPublishCopy'.
- > Could not find :YoukuPlayerOpenSDK-release:.
- Required by:
- project :library > project :youkuPlayer
aar导入到
'com.android.application' 教程就很简单 但是我们按照那个教程就会出现上面的错误。
首先我们 aar包叫 open_ad_sdk.aar
我们可以通过
成功导入后发生三处变化
- configurations.maybeCreate("default")
- artifacts.add("default", file('open_ad_sdk_4.1.0.2.aar'))
然后在model中引用使用即可
因为aar相当于一个项目文件。能在application引用。不能再在项目文件中引用 但是经过处理后就可以了
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。