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

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 922 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.
  • B Offline
    B Offline
    Bondrusiek
    wrote on 6 Aug 2023, 14:48 last edited by Bondrusiek 8 Jun 2023, 16:16
    #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?

    B 1 Reply Last reply 6 Aug 2023, 17:42
    0
    • B Bondrusiek
      6 Aug 2023, 14:48

      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?

      B Offline
      B Offline
      Bondrusiek
      wrote on 6 Aug 2023, 17:42 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
      • B Bondrusiek has marked this topic as solved on 6 Aug 2023, 17:43

      1/2

      6 Aug 2023, 14:48

      • Login

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