app declares a dependency from configuration 'compile' to configuration 'default' which is not declared in the descriptor for project

后端 未结 11 1901

I am importing a library module named \"wear\" in my project and while building, I am getting this:

Error : A problem occurred configuring project \':app\'.   
C         


        
11条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-02-03 18:03

    for me, I just modify the line in settings.gradle: project(':test').projectDir = new File(rootProject.projectDir, '~/android-test') to project(':test').projectDir = new File(rootProject.projectDir, '/Users/Michael/android-test') which means avoid using "~" in the settings.gradle.

提交回复
热议问题