Android Studio配置問題

2021-07-16 18:13:37 字數 435 閱讀 7084

1. gradle sync failed: unable to start the daemon process.

以為是配置檔案的內容問題,結果一開啟檔案,發現把properties單詞拼錯了,studio不認識也難怪t_t

解決方案:在c:\user\administrator\.gradle資料夾下,建立乙個txt檔案,命名為gragle.properties

並在檔案裡新增:org.gradle.jvmargs=-xmx512m  減少占用的記憶體

studio的gradle running時間慢,還可以新增以下**優化

org.gradle.parallel=true

org.gradle.daemon=true

2. gradle sync failed: gradle dsl method not found: 'android()'

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...

Android Studio啟動配置gradle

環境 debian 第一次建立android工程的時候,現配置gradle,但是一般會卡在?1 download gradle directly from 字樣解決方法 找到?1?網上還有其他的一些方法,比如複製檔案,修改環境變數之類的,也可以試試。另外,可以注意一下這個templates資料夾裡面...