Gradle location is incorrect error while importing ActionBarsherlock in Android Studio

前端 未结 6 2082
长发绾君心
长发绾君心 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:14

    Try using this path:

    For Windows

    C:\Users\MyHome\.gradle\wrapper\dists\gradle-1.6-bin\<some random folder>\gradle-1.6
    

    For UNIX (Debian, Mac etc.)

    ~/.gradle/wrapper/dists/gradle-<a-version>-<bin or all>/<some random folder>/gradle-<a-version>
    
    0 讨论(0)
  • 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/

    0 讨论(0)
  • 2020-12-23 19:16

    Point to the folder <gradle root folder>/libexec. Things should start working.

    0 讨论(0)
  • 2020-12-23 19:19

    If you have installed your gradle with brew then it would be:

    /usr/local/Cellar/gradle/<version>/libexec/
    
    0 讨论(0)
  • 2020-12-23 19:21

    If you use brew to install gradle on mac, then use /usr/local/Cellar/gradle/4.0.1/libexec

    0 讨论(0)
  • 2020-12-23 19:32

    When using homebrew, instead of (as suggested in other answers):

    /usr/local/Cellar/gradle/<version>/libexec/
    

    It's better to use:

    /usr/local/opt/gradle/libexec
    

    It's a symlink and will survive brew upgrade.

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