Gradle errors in Android Studio

前端 未结 2 1978
Happy的楠姐
Happy的楠姐 2021-01-11 17:45

I imported an Android project from Eclipse to Andriod Studio, but when I compile, I get these errors. What do they mean?

Gradle: : org.gradle.api.plugins.Pl         


        
2条回答
  •  抹茶落季
    2021-01-11 18:13

    I met same problem while starting using Android Studio, and tried to compile my app in command-line mode. The solution is simple:

    1. upgrade your Gradle to version 1.6 ( I am not sure if this is required)
    2. set up ANDROID_HOME in your environment. For me it's like this:

      export ANDROID_HOME="/Applications/Android Studio.app/sdk/"
      

    and then, it should build your project successfully by using gradle build in your project root folder.

提交回复
热议问题