Gradle location is incorrect error while importing ActionBarsherlock in Android Studio

前端 未结 6 2086
长发绾君心
长发绾君心 2020-12-23 18:43

I\'m also trying to import the ABS in new updated Android Studio. I\'m following this tutorial.

but on step Adding Action Bar Sherlock library to Android St

6条回答
  •  旧巷少年郎
    2020-12-23 19:15

    Create a build.gradle with:

    task getHomeDir << {
        println gradle.gradleHomeDir
    }
    

    Then run it with:

    gradle getHomeDir
    

    You should see something like:

    /usr/local/Cellar/gradle/1.6/libexec
    

    You can use that to populate the Gradle plugin, and you’re off.

    http://www.rabblemedia.net/blog/setting-up-gradle-plugin-for-intellij/

提交回复
热议问题