这是官方给的导入方式:
https://developer.android.com/studio/intro/migrate.html#android_studio_2
但是导入的时候有时候有错误,在stackoverflow里看到:
Just move this part inside the module/build.gradle file.
android {
compileSdkVersion 17
buildToolsVersion '23.0.0'
}
dependencies {
compile files('app/libs/junit-4.12-JavaDoc.jar')
}
apply plugin: 'maven'
用了之后好使了。