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. Building example for Android fails on MacOS

Building example for Android fails on MacOS

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
android sdkmacosx
1 Posts 1 Posters 321 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.
  • T Offline
    T Offline
    Tom asso
    wrote on 21 Aug 2019, 17:24 last edited by
    #1

    Running Qt 5.13.0 on MacOS Sierra (10.12.6).
    I've configured Qt for Android development per these instructions,. Trying to build the qmlsurfacelayers project in qtcreator examples, using the android kit armeabi-v7a (Clang Qt 5.13.0 for Android ARMv7). Build fails with following error messages:

    Warning: QML import could not be resolved in any of the import paths: QtQuick.Extras.Private.CppUtils
    Warning: QML import could not be resolved in any of the import paths: QtQuick.Extras.Private.CppUtils
    
    FAILURE: Build failed with an exception.
    
    * Where:
    Build file '/Users/oreilly/Qt/Examples/Qt-5.13.0/datavisualization/build-qmlsurfacelayers-Android_for_armeabi_v7a_Clang_Qt_5_13_0_for_Android_ARMv7-Debug/android-build/build.gradle' line: 17
    
    * What went wrong:
    A problem occurred evaluating root project 'android-build'.
    > Failed to apply plugin [id 'com.android.application']
       > Could not create an instance of type com.android.build.gradle.internal.dsl.BaseAppModuleExtension_Decorated.
          > Could not create an instance of type com.android.build.gradle.internal.api.DefaultAndroidSourceSet.
             > Uninitialized object exists on backward branch 70
               Exception Details:
                 Location:
                   com/android/build/gradle/internal/scope/BuildArtifactsHolder.newArtifact(Lcom/android/build/api/artifact/BuildableArtifact;)Lcom/android/build/gradle/internal/scope/BuildArtifactsHolder$BuildableArtifactData; @119: goto
                 Reason:
                   Error exists in the bytecode
                 Bytecode:
                   0000000: bb02 0559 2bb9 0208 0100 c000 b82b b902
                   0000010: 0c01 0001 b902 1202 0059 1302 14b8 0051
                   0000020: c001 734d 3a0d 3a0c 3a0b 2c4e bb01 a659
                   0000030: 2c10 0ab8 0177 b701 a7c0 00b8 3a04 2db9
                   0000040: 018e 0100 3a05 1905 b901 9401 0099 002d
                   0000050: 1905 b901 9801 003a 0619 0419 06c0 00f1
                   0000060: 3a07 3a0e 1907 b902 1501 003a 0f19 0e19
                   0000070: 0fb9 01ad 0200 57a7 ffcf 1904 c001 af3a
                   0000080: 0e19 0b19 0c19 0d19 0eb7 0218 b0       
                 Stackmap Table:
                   full_frame(@70,{Object[#2],Object[#83],Object[#371],Object[#371],Object[#184],Object[#400],Top,Top,Top,Top,Top,Uninitialized[#0],Uninitialized[#0],Object[#184]},{})
                   same_frame(@122)
    
    
    * Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
    
    * Get more help at https://help.gradle.org
    
    BUILD FAILED in 6s
    Building the android package failed!
      -- For more information, run this command with --verbose.
      -- Skipping /Users/oreilly/Qt/5.13.0/android_armv7/plugins/iconengines/libqsvgicon.so. It has unmet dependencies: lib/libQt5Svg.so,lib/libQt5Widgets.so.
      -- Skipping /Users/oreilly/Qt/5.13.0/android_armv7/plugins/imageformats/libqsvg.so. It has unmet dependencies: lib/libQt5Svg.so,lib/libQt5Widgets.so.
    09:59:04: The process "/Users/oreilly/Qt/5.13.0/android_armv7/bin/androiddeployqt" exited with code 14.
    Error while building/deploying project qmlsurfacelayers (kit: Android for armeabi-v7a (Clang Qt 5.13.0 for Android ARMv7))
    When executing step "Build Android APK"
    09:59:04: Elapsed time: 00:10.
    
    
    1 Reply Last reply
    0

    1/1

    21 Aug 2019, 17:24

    • Login

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