1.INSTALL_FAILED_TEST_ONLY
在项目中的gradle.properties中设置:
android.injected.testOnly=false
2.jcenter仓库慢
替换成阿里云
buildscript {
repositories {
google()
// jcenter()
maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
maven { url 'http://maven.aliyun.com/nexus/content/repositories/jcenter' }
}
}
allprojects {
repositories {
google()
// jcenter()
maven{ url'http://maven.aliyun.com/nexus/content/groups/public/' }
maven{ url'http://maven.aliyun.com/nexus/content/repositories/jcenter'}
}
}
3.支持java8
在app的build.gradle中添加
android {
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}