Gradle errors in Android Studio

前端 未结 2 1979
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 17:58

    I was having the same problem. Turned out it was because I had Gradle v1.4 installed. Once I upgraded to v1.6 (download and change path), these problems went away.

    0 讨论(0)
  • 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.

    0 讨论(0)
提交回复
热议问题