Android library 依赖 aar

既然你搜索了这样的关键字。。证明还是你有点水平的

也可能是这样的关键字:com.android.library 导入aar包

也可能是

如何生成.aar包和如何在项目中引入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

我们可以通过

成功导入后发生三处变化

 

 然后在model中引用使用即可 

因为aar相当于一个项目文件。能在application引用。不能再在项目文件中引用  但是经过处理后就可以了

猜你喜欢

转载自blog.csdn.net/mp624183768/article/details/106259475