在vivo手机上的安装错误
Installation did not succeed.
The application could not be installed: INSTALL_FAILED_TEST_ONLY
Retry
解决方法:在gradle.properties中添加
android.injected.testOnly=false
kotlin默认配置修改
build.gradle(app)中添加
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions
可使用配置要求
android {
compileSdkVersion 29
defaultConfig {
applicationId "com.example.fragmentbestpractice"
minSdkVersion 21
targetSdkVersion 29
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}