我使用Android Studio毫无问题地生成了apk
,但是当我尝试在手机android v4.4.2中安装时,此错误向我显示“
该应用未安装”
我不明白,这是配置:
apply plugin: 'com.android.application'
android {
compileSdkVersion 28
defaultConfig {
applicationId "com.example.ejemplogpsmaps"
minSdkVersion 19
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation 'com.google.android.gms:play-services-maps:16.1.0'
}
然后我尝试在另一部手机上安装三星Galaxy s4 android v5.0.1,并显示了相同的错误
最佳答案
首先,检查应用程序是否通过USB安装。
然后检查 flavor 是否已发布且未调试。如果在调试中,则尝试使用选定的发行版本构建另一个
关于java - 在某些设备上未安装使用Android Studio生成的APK,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/58758814/