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

后端 未结 11 1900

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 17:59

    I found this error too. So, I noticed that my settings.gradle was searching for a path that didn't exist. Example: (settings.gradle)

    project(':YourProjectV1').projectDir = new File('../YourProjectFolderV1/app/');
    

    However, in my filesystem, the path was: ../YourProjectFolderv1

    After syncing the names, the project was ok!

    I hope that helps.

提交回复
热议问题