1、從Github中下載工程壓縮包,並將其解壓到本地
2、修改文件
假設,解壓后的文件目錄如下:

(1)修改配置文件 xx\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:1.3.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
}
}
(2)修改gradle版本 xx\gradle\wrapper\gradle-wrapper.properties

distributionUrl=https\://services.gradle.org/distributions/gradle-2.4-all.zip
(3)修改gradle.properties xx\gradle.properties(如果項目有並且需要的話)
ANDROID_BUILD_TARGET_SDK_VERSION=23
ANDROID_BUILD_TOOLS_VERSION=23
ANDROID_BUILD_SDK_VERSION=23
(4)修改Application\build.gradle library\build.gradle xx\library\build.gradle(如果項目有並且需要的話)
i、注釋掉這句代碼://apply from: 'https://raw.github.com/chrisbanes/gradle-mvn-push/master/gradle-mvn-push.gradle' (如果項目有並且需要的話)
ii、

compileSdkVersion 23
buildToolsVersion "23.0.1"
defaultConfig {
minSdkVersion 21
targetSdkVersion 23
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
3、打開Android Studio,導入修改后的工程
4、如果導入后沒有報錯,則說明運行OK
可能需要改動的文件: