赞
踩
我们在使用 Android Studio version (4.0.0+)引用aar的时候,上面的报错是不是很熟悉,修复方法是
1、把libs中的aar库删除,在项目的根目录中创建一个新目录。如下图显示spotify app remote。在其中,放入AAR,并创建一个新的build.gradle文件。
2、在本module的build.gradle文件中引用aar,如下
configurations.maybeCreate("default")
artifacts.add("default", file('spotify-app-remote-release-0.7.1.aar'))
3、在settings.gradle中声明此module
include ':spotify-app-remote'
4、在需要用到aar的地方引用 aar所在的project
api project(':spotify-app-remote')
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。