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=23ANDROID_BUILD_TOOLS_VERSION=23ANDROID_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 23buildToolsVersion "23.0.1"defaultConfig {minSdkVersion 21targetSdkVersion 23}compileOptions {sourceCompatibility JavaVersion.VERSION_1_7targetCompatibility JavaVersion.VERSION_1_7}
3、打开Android Studio,导入修改后的工程


4、如果导入后没有报错,则说明运行OK
可能需要改动的文件:

