Android studio import new library prompt Add library 'Gradle ***** @ aar' to classpath

1 question

as import third-party libraries in the dependent base class build.gradle and add the following

implementation 'com.truizlop.sectionedrecyclerview:library:1.2.0'

 The error is as follows

 

 

2 Reason

implementation Single layer reference, only reference the current aar package,

api multi-layer reference, reference current aar package, and aar package referenced by aar

 

 

 

 

3 solutions

Replace implementation with api

api 'com.truizlop.sectionedrecyclerview:library:1.2.0'

 

Published 1092 original articles · Like 712 · Visit 3.16 million +

Guess you like

Origin blog.csdn.net/u011068702/article/details/105568050