[我正在尝试安装可确保正常运行的应用程序(通过Android Studio上的播放按钮进行安装可正常工作),但是如果我尝试通过Play商店或直接通过APK文件安装,则会收到错误消息:“” App未安装”。此错误发生在小米Redmi note 5而非7(其中一个从未安装此应用程序)上。当我尝试使用Android Studio通过生成的APK版本直接安装时,会发生这种情况。
构建->生成签名包/ APK-> APK->插入我的密码->选择释放并选中两个复选框(V1和V2),我只尝试了V1和V2,但都没有尝试...] >
现在,我尝试去Build-> Build bundle / APK-> Build APK,它可以使用调试文件进行安装。但是,我无法将此文件上传到Play Store
。因此,问题出在APK文件的RELEASE版本上。如何解决它,以便可以将其上传到Play Store?PS:在第三台设备上尝试了该调试文件后,它也没有起作用。如果我直接从Android Studio播放按钮
安装,则所有3台设备均正常工作。这是我的build.gradle(Module:app)文件:
apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'
android {
compileSdkVersion 28
buildToolsVersion "29.0.2"
defaultConfig {
applicationId "com.appdidier.hospitalar"
minSdkVersion 16
targetSdkVersion 28
versionCode 5
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
multiDexEnabled true
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
lintOptions {
checkReleaseBuilds false
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
// implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'com.android.support:design:28.0.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.2.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
implementation 'com.google.firebase:firebase-analytics:17.2.0'
implementation 'com.google.firebase:firebase-database:19.2.0'
implementation 'com.google.firebase:firebase-storage:19.1.0'
implementation 'com.google.firebase:firebase-auth:19.1.0'
//// implementation 'com.facebook.android:facebook-android-sdk:[4,5)'
implementation 'com.google.firebase:firebase-messaging:20.0.0'
// implementation 'com.google.android.gms:play-services:12.0.1'
// implementation 'com.google.android.gms:play-services-maps:15.0.1'
// implementation 'com.google.android.gms:play-services-location:11.6.0'
implementation 'com.itextpdf:itextg:5.5.10'
implementation 'com.android.support:multidex:1.0.3'
implementation 'com.github.barteksc:android-pdf-viewer:2.8.1'
implementation "com.squareup.picasso:picasso:2.71828"
implementation 'com.github.chrisbanes:PhotoView:2.1.3'
// implementation 'com.crashlytics.sdk.android:crashlytics:2.9.7'
implementation 'com.google.code.gson:gson:2.8.5'
implementation 'com.github.sundeepk:compact-calendar-view:1.9.1'
implementation 'com.google.android.gms:play-services-maps:17.0.0'
}
[我正在尝试安装可确保正常运行的应用程序(通过Android Studio上的播放按钮进行安装可正常工作),但是如果我尝试通过Play商店或直接安装,则会出现错误...
我最终通过删除清单文件中的这一行代码解决了我的问题: