Android Emulator Qt6.5.2 Apple M1 INSTALL_PARSE_FAILED_NO_CERTIFICATES
-
Hello,
I have problem with Android Emulator and Qt 6.5.2.I use AppleM1. I installed all needed components.
Next I can choose one of 5 android compilators:- Android Qt 6.5.2 Clang arm64-v8a
- Android Qt 6.5.2 Clang armeabi-v7a
- Android Qt 6.5.2 Clang x86
- Android Qt 6.5.2 Clang x86_64
I create QtQuick app and choose Android Qt 6.5.2 Clang arm64-v8a. Next I try to compile app and run it on emulator.
Emulator starts but without my application. I also get error from QtCreator.
I also get error from compilator:
adb: failed to install /PAT_TO_RESULT/android-build//build/outputs/apk/release/android-build-release-unsigned.apk: Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES: Failed to collect certificates from /data/app/vmdl2020547270.tmp/base.apk: Attempt to get length of null array]
Installing to device failed!Do you know how can I resolve that problem?
-
@Bondrusiek
I solved that. Do this steps:- Select the "Projects" tab on the left.
- In the left side panel, select the "Build Android APK" section.
- Scroll down to the "Build Steps" section and find the "Packaging" step.
- In the "Packaging" section, you should see a "Sign package" checkbox. Make sure it's checked.
- Configure "Signing Configuration" with required information such as keystore file path, keystore password, key alias and key password. If you don't already have a keystore file, you can create one using the java keytool.
- Click the "Apply" button to save your changes.
- Now try building your Android APK again by clicking on the green arrow icon (or using Ctrl + B) in the lower left corner of Qt Creator.
-