Android Studio and Gradle build error

后端 未结 8 754
野性不改
野性不改 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:24

    Similar to @joe_deniable 's answer the thing I found with my own projects was that gradle would output that kind of error when there was a misconfiguration of my system.

    I discovered that by running gradlew installDebug or similar command from the terminal I got better output as to what the real problem was.

    e.g. initially it turns out my JAVA_HOME was not setup correctly. Then I discovered it encountered errors because I didn't have a package space setup correctly. Etc.

提交回复
热议问题