在project 的gradle.properties中新增:
org.gradle
.daemon=true
org.gradle
.parallel=true
org.gradle
.jvmargs=-xmx1024m
如果記憶體足夠大,可以這樣:
org.gradle
.jvmargs=-xmx4096m -xx:maxpermsize=1024m
開啟dex增量編譯,在module的build.gradle中新增
dexoptions
settings>build,execution,deployment
勾選compile independent modules in parallel(may require larger heap size)
command-line options:- -parallel-threads=8
這裡添上自己電腦對應的執行緒。
開啟自動編譯,勾選make project automaticlly
開啟offline work:
settings>build,execution,deployment>build tools>gradle>offline work
Android Studio配置問題
1.gradle sync failed unable to start the daemon process.以為是配置檔案的內容問題,結果一開啟檔案,發現把properties單詞拼錯了,studio不認識也難怪t t 解決方案 在c user administrator gradle資料夾下,...
Android Studio配置總結
1.cmake as 2.3.1版本後使用cmake來配置native 的編譯,所以在這裡總結下cmake的常用配置 新增引用路徑 include directories src main cpp include 新增待編譯模組 add library sets the name of the li...
Android Studio 配置Gradle總結
2 報錯 error failed to open zip file.gradle s dependency cache may be corrupt this sometimes occurs after a network connection timeout.re download depen...