跳至内容
sdvcrx's wiki
用户工具
登录
站点工具
搜索
工具
显示页面
过去修订
Export to Markdown
反向链接
最近更改
媒体管理器
网站地图
登录
>
最近更改
媒体管理器
网站地图
您的足迹:
gradle
本页面只读。您可以查看源文件,但不能更改它。如果您觉得这是系统错误,请联系管理员。
====== Gradle ====== [[wiki>Gradle|Gradle]] 是一个Android常用的项目自动化建构工具。 ===== Proxy ===== Gradle从bintray.com下载文件**非常慢**,可设置代理加速下载[(cite:>[[https://www.zhihu.com/question/37810416/answer/82464203|大家都是怎样处理Gradle中的这个文件下载慢的问题的?]])]: <code ini $HOME/.gradle/gradle.properties> org.gradle.daemon=true org.gradle.jvmargs=-DsocksProxyHost=127.0.0.1 -DsocksProxyPort=1080 </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.txt
· 最后更改: 2023/12/03 10:24 由
127.0.0.1
页面工具
显示页面
过去修订
反向链接
Export to Markdown
回到顶部