Не устанавливается APK для выпуска конденсатора | Ионное приложение

#android #ionic-framework #google-play #hybrid-mobile-app #capacitor

#Android #ionic-framework #google-play #гибрид-мобильное приложение #конденсатор

Вопрос:

Я только начал работать с capacitor ionic, я создал простое приложение. Когда я запускаю приложение с помощью Android studio, оно работает нормально, но когда я создаю выпуск apk, он сообщает, что установка не удалась.

Я пытаюсь скопировать apk-версию и пытаюсь установить ее на другой телефон. Это неправильно? Я просто хочу подтвердить, что apk работает нормально.

Обычно я замечаю приведенную ниже ошибку в Logcat

 2021-02-19 03:21:02.226 671-671/? E/Diag_Lib:  Diag_LSM_Init: Failed to open handle to diag driver, error = 13
2021-02-19 03:21:02.494 21232-21281/? E/GooglePlayServicesUtil: The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.
2021-02-19 03:21:02.987 21317-21317/? E/dboxed_process: Not starting debugger since process cannot load the jdwp agent.
2021-02-19 03:21:03.012 1890-1890/? E/MiuiFaceFactory: getCurrentAuthType sCurrentAuthType = 1
2021-02-19 03:21:03.012 1890-1890/? E/MiuiFaceFactory: getFaceManager sCurrentAuthType = 1
2021-02-19 03:21:03.012 1890-1890/? E/MiuiFaceFactory: getCurrentAuthType sCurrentAuthType = 1
2021-02-19 03:21:03.012 1890-1890/? E/MiuiFaceFactory: getFaceManager sCurrentAuthType = 1
2021-02-19 03:21:03.012 1890-1890/? E/MiuiFaceFactory: getCurrentAuthType sCurrentAuthType = 1
2021-02-19 03:21:03.012 1890-1890/? E/MiuiFaceFactory: getFaceManager sCurrentAuthType = 1
2021-02-19 03:21:03.012 1890-1890/? E/MiuiFaceFactory: getCurrentAuthType sCurrentAuthType = 1
2021-02-19 03:21:03.012 1890-1890/? E/MiuiFaceFactory: getFaceManager sCurrentAuthType = 1
2021-02-19 03:21:03.168 1612-2571/? E/FingerprintService: Stopping background authentication, top: com.google.android.packageinstaller currentClient: com.miui.securitycenter
 

переменная.градация

 ext {
    minSdkVersion = 21
    compileSdkVersion = 29
    targetSdkVersion = 29
    androidxAppCompatVersion = '1.1.0'
    androidxCoreVersion =  '1.2.0'
    androidxMaterialVersion =  '1.1.0-rc02'
    androidxBrowserVersion =  '1.2.0'
    androidxLocalbroadcastmanagerVersion =  '1.0.0'
    androidxExifInterfaceVersion = '1.2.0'
    firebaseMessagingVersion =  '20.1.2'
    playServicesLocationVersion =  '17.0.0'
    junitVersion =  '4.12'
    androidxJunitVersion =  '1.1.1'
    androidxEspressoCoreVersion =  '3.2.0'
    cordovaAndroidVersion =  '7.0.0'
}
 

Комментарии:

1. Вы подписали apk-файл?? Поскольку apk нельзя установить на устройство, не подписав его

2. Если вы пытаетесь протестировать пакет выпуска, почему бы вам не создать файл .aab, а затем выпустить его для внутреннего тестирования через консоль магазина Google Play. Это был бы гораздо лучший процесс тестирования.