我有引用library2的library1。现在,当我在我的应用程序中引用库1时,找不到library2。它给了我错误:Library2:在项目中找不到SecondLibraySDK:..:Library1:FirstLibrarySDK。
Library1工作正常。当我在我的应用程序中添加它时会出现问题。
我看过很多问题,但仍有问题
Android Gradle build with sub projects
Gradle subproject not included in classpath
这是我的文件夹结构:
MYApplication
->build.gradle
->app
-> build.gradle
Library1
->build.gradle
->FirstLibrarySDK
-> build.gradle
Library2
->build.gradle
->SecondLibrarySDK
-> build.gradle
MyApplication的setting.gradle
'..:Library1:FirstLibrarySDK'
Library1的setting.gradle
'..:Library2:SecondLibrarySDK'
这是我图书馆的gradlew项目:
Root project 'Library1'
+--- Project ':..'
| \--- Project ':..:Library2'
| \--- Project ':..:SecondLibrarySDK'
\--- Project ':FirstLibrarySDK'