编译出错报的日志:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':toolbox:compileReleaseJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
出错的代码提示:
Add library 'Gradle: __local_aars__:/home/junliang/.gradle/caches/transforms-1/files-1.1/glrenderer-10.0.0-u-20210318.024304-2.aar/30a9c4e8bef2653f8ecf91e4f833eae4:unspecified@jar' to classpath
原因:
implementation 单层引用
api 多层引用
解决:
在build.gradle中无法引用的类的aar/jar,引用的implementation修改为api