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

后端 未结 11 1873

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:11

    I have faced same issue when i update android studio 3.0 and following solutions works for me

    implementation project(path: ':yourModule', configuration: 'default')
    

    This solution will work if you are using Gradle 4.1 and above and Gradle Plugin Version 3.0.0 and above.

    I hope this will work for you

提交回复
热议问题