用户工具

站点工具


gradle

差别

这里会显示出您选择的修订版和当前版本之间的差别。

到此差别页面的链接

后一修订版
前一修订版
gradle [2017/03/19 18:28] – 创建 memorygradle [2023/12/03 10:24] (当前版本) – 外部编辑 127.0.0.1
行 12: 行 12:
 </code> </code>
  
 +===== Usage =====
  
 +''Gradle'' 默认读取当前目录下的 ''build.gradle'' 文件。
 +
 +列出所有任务:
 +
 +  gradle tasks
 +
 +===== Troubleshoot =====
 +
 +=== First build error: You have not accepted the SDK license agreements ===
 +
 +> You have not accepted the license agreements of the following SDK components:
 +> [Android SDK Platform 25].
 +> Before building your project, you need to accept the license agreements and complete the installation of the missing components using the Android Studio SDK Manager.
 +> Alternatively, to learn how to transfer the license agreements from one workstation to another, go to http://d.android.com/r/studio-ui/export-licenses.html
 +
 +Answer: http://stackoverflow.com/a/38381577
 +
 +<code bash>
 +mkdir -p "$ANDROID_HOME/licenses"
 +echo -e "\n8933bad161af4178b1185d1a37fbf41ea5269c55" > "$ANDROID_HOME/licenses/android-sdk-license"
 +echo -e "\n84831b9409646a918e30573bab4c9c91346d8abd" > "$ANDROID_HOME/licenses/android-sdk-preview-license"
 +</code>
 +
 +===== Reference =====
 +
 +  * [[https://docs.gradle.org/3.4.1/userguide/userguide.html|Gradle User Guide]]
 +  * [[https://gradle.org/docs#getting-started|Gradle Document]]
gradle.1489919323.txt.gz · 最后更改: 2023/12/03 10:24 (外部编辑)