Android Studio and Gradle build error

后端 未结 8 749
野性不改
野性不改 2020-11-30 22:38

I\'ve been using the new preview of android studio and really like it. But recently my project won\'t build. I get the following error:

Gradle: 
FAILURE: Bui         


        
8条回答
  •  生来不讨喜
    2020-11-30 23:18

    If you are using the Gradle Wrapper (the recommended option in Android Studio), you enable stacktrace by running gradlew compileDebug --stacktrace from the command line in the root folder of your project (where the gradlew file is).

    If you are not using the gradle wrapper, you use gradle compileDebug --stacktrace instead (presumably).

    You don't really need to run with --stacktrace though, running gradlew compileDebug by itself, from the command line, should tell you where the error is.

    I based this information on this comment:

    Android Studio new project can not run, throwing error

提交回复
热议问题