Android Studio下的build工具路徑和設置位置

Android Studio下的編譯工具gradle的安裝路徑在:

磁盤路徑\Android Studio\gradle\m2repository\com\android\tools\build\gradle

而不是:

磁盤路徑\Android Studio\gradle\



項目中配置gradle的位置是:項目目錄下build.gradle文件中:

// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.3.3'
    }
}
allprojects {
    repositories {
        jcenter()
    }
}
dependencies {
}


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章