I'm also trying to import the ABS in new updated Android Studio. I'm following this tutorial.
我也试图在新的Android Studio中导入ABS。我正在学习本教程。
but on step Adding Action Bar Sherlock library to Android Studio im getting the error
但是在步骤中添加Action Bar Sherlock库到Android Studio即可获得错误
Gradle Location is incorrect. here is pic.
Gradle位置不正确。这是照片。
When I go to the path C:\Users\Sir John Qadir\
there is no any gradle1.6 folder in there. How to resolve this?
当我去路径C:\ Users \ Sir John Qadir \那里没有任何gradle1.6文件夹。怎么解决这个?
5 个解决方案
#1
87
Try using this path:
尝试使用此路径:
For Windows
对于Windows
C:\Users\MyHome\.gradle\wrapper\dists\gradle-1.6-bin\<some random folder>\gradle-1.6
For UNIX (Debian, Mac etc.)
对于UNIX(Debian,Mac等)
~\.gradle\wrapper\dists\gradle-<a-version>-<bin or all>\<some random folder>\gradle-<a-version>
#2
95
If you have installed your gradle with brew then it would be:
如果您已经使用brew安装了gradle,那么它将是:
/usr/local/Cellar/gradle/<version>/libexec/
#3
35
Point to the folder <gradle root folder>/libexec
. Things should start working.
指向文件夹
#4
5
Create a build.gradle with:
使用以下命令创建build.gradle:
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.
您可以使用它来填充Gradle插件,然后就可以了。
http://www.rabblemedia.net/blog/setting-up-gradle-plugin-for-intellij/
http://www.rabblemedia.net/blog/setting-up-gradle-plugin-for-intellij/
#5
4
If you use brew to install gradle on mac, then use /usr/local/Cellar/gradle/4.0.1/libexec
如果你使用brew在mac上安装gradle,那么使用/usr/local/Cellar/gradle/4.0.1/libexec
#1
87
Try using this path:
尝试使用此路径:
For Windows
对于Windows
C:\Users\MyHome\.gradle\wrapper\dists\gradle-1.6-bin\<some random folder>\gradle-1.6
For UNIX (Debian, Mac etc.)
对于UNIX(Debian,Mac等)
~\.gradle\wrapper\dists\gradle-<a-version>-<bin or all>\<some random folder>\gradle-<a-version>
#2
95
If you have installed your gradle with brew then it would be:
如果您已经使用brew安装了gradle,那么它将是:
/usr/local/Cellar/gradle/<version>/libexec/
#3
35
Point to the folder <gradle root folder>/libexec
. Things should start working.
指向文件夹
#4
5
Create a build.gradle with:
使用以下命令创建build.gradle:
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.
您可以使用它来填充Gradle插件,然后就可以了。
http://www.rabblemedia.net/blog/setting-up-gradle-plugin-for-intellij/
http://www.rabblemedia.net/blog/setting-up-gradle-plugin-for-intellij/
#5
4
If you use brew to install gradle on mac, then use /usr/local/Cellar/gradle/4.0.1/libexec
如果你使用brew在mac上安装gradle,那么使用/usr/local/Cellar/gradle/4.0.1/libexec