Getting Error “Gradle DSL method not found: 'compile()'” when Syncing Build.Gradle

后端 未结 10 837
后悔当初
后悔当初 2020-11-30 09:42

\"Error\"project

10条回答
  •  不知归路
    2020-11-30 10:29

    I have the same issue, and the bug is my build.gradle of application level has dependencies of my submodules. Means

    dependencies {
       compile project(':library')
      compile project(':MPChartLib')
    }
    

    I have just remove the two line inside the dependencies braces and it is able to start syncing.

提交回复
热议问题