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 {
}


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