Android项目构建时找不到aar包

361 阅读1分钟

在项目的build.gradle(app) 中, 找到dependencies, 增加(或修改)以下这行代码, 把*.aar添加进include即可。

implementation fileTree(dir: 'libs', include: ['*.jar', '*.aar'])

image.png