Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Android Emulator Qt6.5.2 Apple M1 INSTALL_PARSE_FAILED_NO_CERTIFICATES
QtWS25 Last Chance

Android Emulator Qt6.5.2 Apple M1 INSTALL_PARSE_FAILED_NO_CERTIFICATES

Scheduled Pinned Locked Moved Solved Mobile and Embedded
apple m1androidemulatorqt6.5
2 Posts 1 Posters 921 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • BondrusiekB Offline
    BondrusiekB Offline
    Bondrusiek
    wrote on last edited by Bondrusiek
    #1

    Hello,
    I have problem with Android Emulator and Qt 6.5.2.I use AppleM1. I installed all needed components.
    1.png
    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.
    2.png
    Emulator starts but without my application. I also get error from QtCreator.
    3.png

    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?

    BondrusiekB 1 Reply Last reply
    0
    • BondrusiekB Bondrusiek

      Hello,
      I have problem with Android Emulator and Qt 6.5.2.I use AppleM1. I installed all needed components.
      1.png
      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.
      2.png
      Emulator starts but without my application. I also get error from QtCreator.
      3.png

      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?

      BondrusiekB Offline
      BondrusiekB Offline
      Bondrusiek
      wrote on last edited by
      #2

      @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.
      1 Reply Last reply
      2
      • BondrusiekB Bondrusiek has marked this topic as solved on

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved