Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business

Forums

OverviewFelgo Installation › V-PLay build for Android ARM not working

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #17329

    paul grant

    Hi,

    I’m unable to build for Android ARM7 platform. I have previously been developing on Android with no build problems.

    With the previous version of V-PLAY my problem was that I couldn’t build the firebase plugin code.

     

    I read through previous posts, and thought it was because I had not updated to the latest release from V-PLAY

    so I did, but now I can’t build at all for Android. I can still build for desktop.

     

    I get the following error:

    QApplication no such file or directory, during build!

    I see the same error if I take your standard weather example.

     

    1. Can you confirm what version of the Android SDK, NDK work for you?
    2. Additionally which API need to be installed and which package for the required API need to be present.

    BR

    Paul

     

     

     

     

    #17330

    Günther
    Felgo Team

    Hi Paul,

    sorry for your troubles after the new update!

    Unfortunately the Qt MaintenanceTool has troubles to resolve dependencies correctly sometimes, which is why the installation can get messed up (with e.g. missing/wrong modules). The error indicates that the Felgo library is missing in your Android Kit, so the tool probably didn’t add them correctly.

    As a first step, please try removing and re-installing the Android Kit with the MaintenanceTool. A fresh and clean installation of Felgo can also help.

    Does your application build again for Android then?

    If you run into issues for Android with the gradle-wrapper version setting of your project, please see the reply to:
    Can’t deploy Android app to device after 2.13.2

     

    Best,
    Günther

    #17345

    paul grant

    Hi Gunther,

    Deleted and reinstalled v-play sdk.

    Now when I attempt to build the app playground example for Android it works!

    However it doesn’t seem to have a build.gradle file.

    When I try to build my app, which built previously it fails with error:

    Total time: 23.622 secs

    Build file ‘/media/pgrant/extdev01/venture/vpappdev/build-untitled-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build.gradle’ line: 18

    * What went wrong:

    A problem occurred evaluating root project ‘android-build’.

    > Failed to apply plugin [id ‘com.android.application’]

    > Minimum supported Gradle version is 3.3. Current version is 2.14.1. If using the gradle wrapper, try editing the distributionUrl in /media/pgrant/extdev01/venture/vpappdev/build-untitled-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/gradle/wrapper/gradle-wrapper.properties to gradle-3.3-all.zip

    * Try:

    Run with –stacktrace option to get the stack trace. Run with –info or –debug option to get more log output.

    Building the android package failed!

    — For more information, run this command with –verbose.

    08:25:05: The process “/home/pgrant/FelgoSDK/5.9.2/android_armv7/bin/androiddeployqt” exited with code 14.

    Error while building/deploying project untitled (kit: Android for armeabi-v7a (GCC 4.9, Qt 5.9.2 for Android armv7))

    When executing step “Build Android APK”

    08:25:05: Elapsed time: 00:56.

    I’ve done the replacement in the gradle file which your update post recommends:

     

     

    buildscript {
    repositories {
    jcenter()
    }

    dependencies {
    classpath ‘com.android.tools.build:gradle:2.3.3’
    }
    }

    allprojects {
    repositories {
    jcenter()
    maven { url ‘https://maven.google.com’ }
    maven { url ‘https://sdk.felgo.com/maven/’ }
    }
    }
    apply plugin: ‘com.android.application’

    I had to delete “…” as it caused an error!

    Can you advise!

    BR

    Paul Grant

     

     

    #17346

    Günther
    Felgo Team

    Hi Paul,

    About the gradle-wrapper problem:
    We updated some Felgo Plugin versions, which also affects the required gradle version.

    > Minimum supported Gradle version is 3.3. Current version is 2.14.1. If using the gradle wrapper, try editing the distributionUrl in /media/pgrant/extdev01/venture/vpappdev/build-untitled-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/gradle/wrapper/gradle-wrapper.properties to gradle-3.3-all.zip

    Does your project maybe already have a custom android/gradle/wrapper/gradle-wrapper.properties file, which uses 2.14.1?

    If not, you can can copy the gradle-wrapper file from your <android-build-directory>/android-build/gradle/wrapper/gradle-wrapper.properties. By adding this file to your project and using the correct version there, all future builds for this project will use the version specified..

    Does this solve your issue?

    #17402

    paul grant

    HI Gunther,

    Made change you suggested, but now get following error:

    FAILURE: Build failed with an exception.
    * Where:

    Build file ‘/media/pgrant/extdev01/venture/vpappdev/build-untitled-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build.gradle’ line: 62
    * What went wrong:

    A problem occurred evaluating root project ‘android-build’.

    > Plugin with id ‘com.google.gms.google-services’ not found.
    * Try:

    Run with –stacktrace option to get the stack trace. Run with –info or –debug option to get more log output.
    BUILD FAILED
    Total time: 6.078 secs

    Building the android package failed!

    — For more information, run this command with –verbose.

    18:15:44: The process “/home/pgrant/FelgoSDK/5.9.2/android_armv7/bin/androiddeployqt” exited with code 14.

    Error while building/deploying project untitled (kit: Android for armeabi-v7a (GCC 4.9, Qt 5.9.2 for Android armv7))

    When executing step “Build Android APK”

    18:15:44: Elapsed time: 00:13.

     

    I have line:

    apply plugin: ‘com.google.gms.google-services’

    At end of build.gradle

    Tried deleting it, then get:

     

    To run dex in process, the Gradle daemon needs a larger heap.

    It currently has 1024 MB.

    For faster builds, increase the maximum heap size for the Gradle daemon to at least 1536 MB.

    To do this set org.gradle.jvmargs=-Xmx1536M in the project gradle.properties.

    For more information see https://docs.gradle.org/current/userguide/build_environment.html

    Dex: Error converting bytecode to dex:

    Cause: com.android.dex.DexException: Multiple dex files define Lcom/google/android/gms/internal/zzdmw;

    :transformClassesWithDexForDebug FAILED

    UNEXPECTED TOP-LEVEL EXCEPTION:

    com.android.dex.DexException: Multiple dex files define Lcom/google/android/gms/internal/zzdmw;

    at com.android.dx.merge.DexMerger.readSortableTypes(DexMerger.java:661)

    at com.android.dx.merge.DexMerger.getSortedTypes(DexMerger.java:616)

    at com.android.dx.merge.DexMerger.mergeClassDefs(DexMerger.java:598)

    at com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:171)

    at com.android.dx.merge.DexMerger.merge(DexMerger.java:198)

    at com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main.java:506)

    at com.android.dx.command.dexer.Main.runMonoDex(Main.java:336)

    at com.android.dx.command.dexer.Main.runDx(Main.java:291)

    at com.android.dx.command.dexer.Main.main(Main.java:247)

    at com.android.dx.command.Main.main(Main.java:94)

    BUILD FAILED

    Total time: 16.471 secs

    FAILURE: Build failed with an exception.

    * What went wrong:

    Execution failed for task ‘:transformClassesWithDexForDebug’.

    > com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException: Error while executing java process with main class com.android.dx.command.Main with arguments {–dex –num-threads=4 –output /media/pgrant/extdev01/venture/vpappdev/build-untitled-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/transforms/dex/debug/folders/1000/1f/main /media/pgrant/extdev01/venture/vpappdev/build-untitled-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/classes_65a4e770a5f0dcaa0b6f4d08712a24a6c20de473.jar /media/pgrant/extdev01/venture/vpappdev/build-untitled-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/classes_78febd5629acd31fe7a4849b6e6fd97afa08d12f.jar /media/pgrant/extdev01/venture/vpappdev/build-untitled-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/debug_94be2b078bbd5ee0eeda45c9f841919e047dc899.jar /media/pgrant/extdev01/venture/vpappdev/build-untitled-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/QtPositioning-bundled_2b14f5032265f6577b3eb5c826af88ad8202e4bb.jar /media/pgrant/extdev01/venture/vpappdev/build-untitled-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/classes_fa7f55858399e9eed0a0c4626dfa4d3d16e1ad7c.jar /media/pgrant/extdev01/venture/vpappdev/build-untitled-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/classes_16a607491e2bbc9705de7599a3883045dfc30537.jar /media/pgrant/extdev01/venture/vpappdev/build-untitled-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/classes_749b9edef4859a326fb47bc1e92eaccf16741780.jar /media/pgrant/extdev01/venture/vpappdev/build-untitled-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/QtAndroid-bundled_b468de3a2c1894083ee7c6e0eccb2bf019a04069.jar /media/pgrant/extdev01/venture/vpappdev/build-untitled-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/classes_d12cdc3e474a76ac7aad58724c3eb063f3976421.jar /media/pgrant/extdev01/venture/vpappdev/build-untitled-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/classes_f8dc88f6c8590450c67b4787b29afac9c6d6c707.jar /media/pgrant/extdev01/venture/vpappdev/build-untitled-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/QtAndroidBluetooth-bundled_c90d0960a0d30cfc0b7edc4645e595cb3744c511.jar /media/pgrant/extdev01/venture/vpappdev/build-untitled-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/classes_78b9e8c3ea2a475d5cd02b7ac1235c5fbc6f4ed2.jar /media/pgrant/extdev01/venture/vpappdev/build-untitled-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/classes_3e90ce4abd0fabaacee22243c8252f365ea15fe4.jar /media/pgrant/extdev01/venture/vpappdev/build-untitled-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/QtAndroidBearer-bundled_5ac0fd41eb69daf28e02515450db1d6cb0aa6ac8.jar /media/pgrant/extdev01/venture/vpappdev/build-untitled-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/classes_ecceccf1391ade776e42b17725d2ec8459af9334.jar /media/pgrant/extdev01/venture/vpappdev/build-untitled-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/QtMultimedia-bundled_f9da92453e2e065a492a0dfb811f316d949a66e1.jar /media/pgrant/extdev01/venture/vpappdev/build-untitled-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/classes_ff97acdc08b8e66de7dd5660914262762d8375c1.jar /media/pgrant/extdev01/venture/vpappdev/build-untitled-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/classes_6f219c96ac75afab0b43cc62cee0cad7f61afdad.jar /media/pgrant/extdev01/venture/vpappdev/build-untitled-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/classes_b314c13c2919603f89dbbf0f282119d16854e8bf.jar /media/pgrant/extdev01/venture/vpappdev/build-untitled-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/support-annotations-25.2.0_ce4d63d2eda2d3947d93af43518aaf8a60b60665.jar /media/pgrant/extdev01/venture/vpappdev/build-untitled-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/classes_a96be4bc777304daf45b4aa744577b74edb603f7.jar /media/pgrant/extdev01/venture/vpappdev/build-untitled-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/VPlay_9a86864be746b8544818ccdc2efca4b709680f2d.jar}

    * Try:

    Run with –stacktrace option to get the stack trace. Run with –info or –debug option to get more log output.

    Building the android package failed!

    — For more information, run this command with –verbose.

    18:20:24: The process “/home/pgrant/FelgoSDK/5.9.2/android_armv7/bin/androiddeployqt” exited with code 14.

    Error while building/deploying project untitled (kit: Android for armeabi-v7a (GCC 4.9, Qt 5.9.2 for Android armv7))

    When executing step “Build Android APK”

    18:20:24: Elapsed time: 00:23.

     

    Can you help?

    BR

    Paul Grant

    #17404

    Günther
    Felgo Team

    Hi Paul,

    as there were many changes to the Gradle setting, please try creating a completely fresh and clean Android to see if the issues persist:

    • Delete the shadow build folder “build-<project>-android….” from your file system.
    • Close Qt Creator, then remove the *.pro.user file of your project from your file system.
    • Open your project in Qt Creator and re-configure the Kits
    • Right-click the Project in the Project Explorer and select “Clean”, followed by right-click and “run qmake”
    • Build and run the project

    Let me know if you still experience the issue then!
    Another hint from my side is to check whether your Android SDK tools are up-to-date.

    Best,
    Günther

    #17408

    paul grant

    Hi Gunther,

    Tried you suggestions still get same error. Noticed that Android sdk was set to 27, which

    failed with error should below, tried 26 as this is what previous instructions had stated, again failed with

    same error. Did notice following is this significant:

    To run dex in process, the Gradle daemon needs a larger heap.

    It currently has 1024 MB.

    For faster builds, increase the maximum heap size for the Gradle daemon to at least 1536 MB.

    To do this set org.gradle.jvmargs=-Xmx1536M in the project gradle.properties.

    For more information see https://docs.gradle.org/current/userguide/build_environment.html

     

    Tried adding:

     

    org.gradle.jvmargs=-Xmx1536M to environment GRADLE_OPTS but got error, then tried: -Xmx1536M

    no error but still get message

     

    Error for build is shown below:

     

    Total time: 18.442 secs

    PREDEX CACHE HITS: 0

    PREDEX CACHE MISSES: 6

    Stopped 0 worker daemon(s).

    Dex: Error converting bytecode to dex:

    Cause: com.android.dex.DexException: Multiple dex files define Lcom/google/android/gms/internal/zzdmw;

    UNEXPECTED TOP-LEVEL EXCEPTION:

    com.android.dex.DexException: Multiple dex files define Lcom/google/android/gms/internal/zzdmw;

    at com.android.dx.merge.DexMerger.readSortableTypes(DexMerger.java:661)

    at com.android.dx.merge.DexMerger.getSortedTypes(DexMerger.java:616)

    at com.android.dx.merge.DexMerger.mergeClassDefs(DexMerger.java:598)

    at com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:171)

    at com.android.dx.merge.DexMerger.merge(DexMerger.java:198)

    at com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main.java:506)

    at com.android.dx.command.dexer.Main.runMonoDex(Main.java:336)

    at com.android.dx.command.dexer.Main.runDx(Main.java:291)

    at com.android.dx.command.dexer.Main.main(Main.java:247)

    at com.android.dx.command.Main.main(Main.java:94)

    FAILURE: Build failed with an exception.

    * What went wrong:

    Execution failed for task ‘:transformClassesWithDexForDebug’.

    > com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException: Error while executing java process with main class com.android.dx.command.Main with arguments {–dex –verbose –num-threads=4 –output /media/pgrant/extdev01/venture/vpappdev/build-untitled-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/transforms/dex/debug/folders/1000/1f/main /media/pgrant/extdev01/venture/vpappdev/build-untitled-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/classes_65a4e770a5f0dcaa0b6f4d08712a24a6c20de473.jar /media/pgrant/extdev01/venture/vpappdev/build-untitled-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/classes_78febd5629acd31fe7a4849b6e6fd97afa08d12f.jar /media/pgrant/extdev01/venture/vpappdev/build-untitled-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/debug_94be2b078bbd5ee0eeda45c9f841919e047dc899.jar /media/pgrant/extdev01/venture/vpappdev/build-untitled-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/QtPositioning-bundled_2b14f5032265f6577b3eb5c826af88ad8202e4bb.jar /media/pgrant/extdev01/venture/vpappdev/build-untitled-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/classes_fa7f55858399e9eed0a0c4626dfa4d3d16e1ad7c.jar /media/pgrant/extdev01/venture/vpappdev/build-untitled-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/classes_16a607491e2bbc9705de7599a3883045dfc30537.jar /media/pgrant/extdev01/venture/vpappdev/build-untitled-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/classes_749b9edef4859a326fb47bc1e92eaccf16741780.jar /media/pgrant/extdev01/venture/vpappdev/build-untitled-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/QtAndroid-bundled_b468de3a2c1894083ee7c6e0eccb2bf019a04069.jar /media/pgrant/extdev01/venture/vpappdev/build-untitled-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/classes_d12cdc3e474a76ac7aad58724c3eb063f3976421.jar /media/pgrant/extdev01/venture/vpappdev/build-untitled-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/classes_f8dc88f6c8590450c67b4787b29afac9c6d6c707.jar /media/pgrant/extdev01/venture/vpappdev/build-untitled-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/QtAndroidBluetooth-bundled_c90d0960a0d30cfc0b7edc4645e595cb3744c511.jar /media/pgrant/extdev01/venture/vpappdev/build-untitled-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/classes_78b9e8c3ea2a475d5cd02b7ac1235c5fbc6f4ed2.jar /media/pgrant/extdev01/venture/vpappdev/build-untitled-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/classes_3e90ce4abd0fabaacee22243c8252f365ea15fe4.jar /media/pgrant/extdev01/venture/vpappdev/build-untitled-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/QtAndroidBearer-bundled_5ac0fd41eb69daf28e02515450db1d6cb0aa6ac8.jar /media/pgrant/extdev01/venture/vpappdev/build-untitled-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/classes_ecceccf1391ade776e42b17725d2ec8459af9334.jar /media/pgrant/extdev01/venture/vpappdev/build-untitled-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/QtMultimedia-bundled_f9da92453e2e065a492a0dfb811f316d949a66e1.jar /media/pgrant/extdev01/venture/vpappdev/build-untitled-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/classes_ff97acdc08b8e66de7dd5660914262762d8375c1.jar /media/pgrant/extdev01/venture/vpappdev/build-untitled-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/classes_6f219c96ac75afab0b43cc62cee0cad7f61afdad.jar /media/pgrant/extdev01/venture/vpappdev/build-untitled-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/classes_b314c13c2919603f89dbbf0f282119d16854e8bf.jar /media/pgrant/extdev01/venture/vpappdev/build-untitled-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/support-annotations-25.2.0_ce4d63d2eda2d3947d93af43518aaf8a60b60665.jar /media/pgrant/extdev01/venture/vpappdev/build-untitled-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/classes_a96be4bc777304daf45b4aa744577b74edb603f7.jar /media/pgrant/extdev01/venture/vpappdev/build-untitled-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/VPlay_9a86864be746b8544818ccdc2efca4b709680f2d.jar}

    * Try:

    Run with –stacktrace option to get the stack trace. Run with –debug option to get more log output.

    Building the android package failed!

    10:07:02: The process “/home/pgrant/FelgoSDK/5.9.2/android_armv7/bin/androiddeployqt” exited with code 14.

    Error while building/deploying project untitled (kit: Android for armeabi-v7a (GCC 4.9, Qt 5.9.2 for Android armv7))

    When executing step “Build Android APK”

    10:07:02: Elapsed time: 00:28.

     

    To validate my installation built your example project tabbed, this worked fine on Android!

    Then tried to build your plugin example project from a newly created clean project, this failed with

    error shown below:

     

    09:46:33: Running steps for project plutest1…

    09:46:33: Starting: “/home/pgrant/FelgoSDK/5.9.2/android_armv7/bin/qmake” /home/pgrant/venture/vpappdev/plutest1/plutest1.pro -spec android-g++ CONFIG+=debug CONFIG+=qml_debug

    Info: creating stash file /media/pgrant/extdev01/venture/vpappdev/build-plutest1-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/.qmake.stash

    09:46:33: The process “/home/pgrant/FelgoSDK/5.9.2/android_armv7/bin/qmake” exited normally.

    09:46:33: Starting: “/usr/bin/make” qmake_all

    make: Nothing to be done for ‘qmake_all’.

    09:46:33: The process “/usr/bin/make” exited normally.

    09:46:33: Starting: “/usr/bin/make”

    /media/pgrant/extdev01/venture/vplay/android-ndk-r14/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++ -c -D__ANDROID_API__=16 –sysroot=/media/pgrant/extdev01/venture/vplay/android-ndk-r14/sysroot -isystem /media/pgrant/extdev01/venture/vplay/android-ndk-r14/sysroot/usr/include/arm-linux-androideabi -isystem /media/pgrant/extdev01/venture/vplay/android-ndk-r14/sources/cxx-stl/gnu-libstdc++/4.9/include -isystem /media/pgrant/extdev01/venture/vplay/android-ndk-r14/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/include -fstack-protector-strong -DANDROID -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -fno-builtin-memmove -g -g -marm -O0 -std=gnu++11 -Wall -W -D_REENTRANT -fPIC -DQT_QML_DEBUG -DQT_QUICK_LIB -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_WEBSOCKETS_LIB -DQT_NETWORK_LIB -DQT_SQL_LIB -DQT_CORE_LIB -I../plutest1 -I. -I/home/pgrant/FelgoSDK/5.9.2/android_armv7/include/VPlay -I/home/pgrant/FelgoSDK/5.9.2/android_armv7/include -I/home/pgrant/FelgoSDK/5.9.2/android_armv7/include/QtQuick -I/home/pgrant/FelgoSDK/5.9.2/android_armv7/include/QtWidgets -I/home/pgrant/FelgoSDK/5.9.2/android_armv7/include/QtMultimedia -I/home/pgrant/FelgoSDK/5.9.2/android_armv7/include/QtGui -I/home/pgrant/FelgoSDK/5.9.2/android_armv7/include/QtQml -I/home/pgrant/FelgoSDK/5.9.2/android_armv7/include/QtWebSockets -I/home/pgrant/FelgoSDK/5.9.2/android_armv7/include/QtNetwork -I/home/pgrant/FelgoSDK/5.9.2/android_armv7/include/QtSql -I/home/pgrant/FelgoSDK/5.9.2/android_armv7/include/QtCore -I. -I/home/pgrant/FelgoSDK/5.9.2/android_armv7/mkspecs/android-g++ -o main.o ../plutest1/main.cpp

    /home/pgrant/FelgoSDK/5.9.2/android_armv7/bin/rcc -name resources_user /home/pgrant/FelgoSDK/5.9.2/android_armv7/mkspecs/common/vplay/resources_user.qrc -o qrc_resources_user.cpp

    /media/pgrant/extdev01/venture/vplay/android-ndk-r14/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++ -c -D__ANDROID_API__=16 –sysroot=/media/pgrant/extdev01/venture/vplay/android-ndk-r14/sysroot -isystem /media/pgrant/extdev01/venture/vplay/android-ndk-r14/sysroot/usr/include/arm-linux-androideabi -isystem /media/pgrant/extdev01/venture/vplay/android-ndk-r14/sources/cxx-stl/gnu-libstdc++/4.9/include -isystem /media/pgrant/extdev01/venture/vplay/android-ndk-r14/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/include -fstack-protector-strong -DANDROID -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -fno-builtin-memmove -g -g -marm -O0 -std=gnu++11 -Wall -W -D_REENTRANT -fPIC -DQT_QML_DEBUG -DQT_QUICK_LIB -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_WEBSOCKETS_LIB -DQT_NETWORK_LIB -DQT_SQL_LIB -DQT_CORE_LIB -I../plutest1 -I. -I/home/pgrant/FelgoSDK/5.9.2/android_armv7/include/VPlay -I/home/pgrant/FelgoSDK/5.9.2/android_armv7/include -I/home/pgrant/FelgoSDK/5.9.2/android_armv7/include/QtQuick -I/home/pgrant/FelgoSDK/5.9.2/android_armv7/include/QtWidgets -I/home/pgrant/FelgoSDK/5.9.2/android_armv7/include/QtMultimedia -I/home/pgrant/FelgoSDK/5.9.2/android_armv7/include/QtGui -I/home/pgrant/FelgoSDK/5.9.2/android_armv7/include/QtQml -I/home/pgrant/FelgoSDK/5.9.2/android_armv7/include/QtWebSockets -I/home/pgrant/FelgoSDK/5.9.2/android_armv7/include/QtNetwork -I/home/pgrant/FelgoSDK/5.9.2/android_armv7/include/QtSql -I/home/pgrant/FelgoSDK/5.9.2/android_armv7/include/QtCore -I. -I/home/pgrant/FelgoSDK/5.9.2/android_armv7/mkspecs/android-g++ -o qrc_resources_user.o qrc_resources_user.cpp

    /media/pgrant/extdev01/venture/vplay/android-ndk-r14/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++ –sysroot=/media/pgrant/extdev01/venture/vplay/android-ndk-r14/platforms/android-16/arch-arm/ -Wl,-soname,libplutest1.so -Wl,-rpath=/home/pgrant/FelgoSDK/5.9.2/android_armv7/lib -Wl,–no-undefined -Wl,-z,noexecstack -shared -o libplutest1.so main.o qrc_resources_user.o -L/media/pgrant/extdev01/venture/vplay/android-ndk-r14/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a -L/media/pgrant/extdev01/venture/vplay/android-ndk-r14/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x -L/home/pgrant/FelgoSDK/5.9.2/android_armv7/lib -lVPlay -lcrypto -lssl -lQt5Quick -L/opt/android/ndk/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a -L/opt/android/ndk/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9 -lQt5Widgets -lQt5Multimedia -lQt5Gui -lQt5Qml -lQt5WebSockets -lQt5Network -lQt5Sql -lQt5Core -lGLESv2 -lgnustl_shared -lgcc -llog -lz -lm -ldl -lc

    09:46:35: The process “/usr/bin/make” exited normally.

    09:46:35: Starting: “/usr/bin/make” INSTALL_ROOT=/home/pgrant/venture/vpappdev/build-plutest1-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build install

    /home/pgrant/FelgoSDK/5.9.2/android_armv7/bin/qmake -install qinstall /media/pgrant/extdev01/venture/vpappdev/plutest1/qml /home/pgrant/venture/vpappdev/build-plutest1-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/assets/qml

    /home/pgrant/FelgoSDK/5.9.2/android_armv7/bin/qmake -install qinstall /media/pgrant/extdev01/venture/vpappdev/plutest1/assets /home/pgrant/venture/vpappdev/build-plutest1-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/assets/assets

    /home/pgrant/FelgoSDK/5.9.2/android_armv7/bin/qmake -install qinstall -exe libplutest1.so /home/pgrant/venture/vpappdev/build-plutest1-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/libs/armeabi-v7a/libplutest1.so

    09:46:35: The process “/usr/bin/make” exited normally.

    09:46:35: Starting: “/home/pgrant/FelgoSDK/5.9.2/android_armv7/bin/androiddeployqt” –input /home/pgrant/venture/vpappdev/build-plutest1-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-libplutest1.so-deployment-settings.json –output /home/pgrant/venture/vpappdev/build-plutest1-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build –deployment bundled –android-platform android-27 –jdk /home/pgrant/bin/jdk1.8.0_91 –gradle

    Generating Android Package

    Input file: /home/pgrant/venture/vpappdev/build-plutest1-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-libplutest1.so-deployment-settings.json

    Output directory: /media/pgrant/extdev01/venture/vpappdev/build-plutest1-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/

    Application binary: /media/pgrant/extdev01/venture/vpappdev/build-plutest1-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/libplutest1.so

    Android build platform: android-27

    Install to device: No

    Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.Universal.impl

    Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.impl

    Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.Material.impl

    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

    NDK is missing a “platforms” directory.

    If you are using NDK, verify the ndk.dir is set to a valid NDK directory. It is currently set to /media/pgrant/extdev01/venture/vplay/android-sdk/ndk-bundle.

    If you are not using NDK, unset the NDK variable from ANDROID_NDK_HOME or local.properties to remove this warning.

    :preBuild UP-TO-DATE

    :preDebugBuild UP-TO-DATE

    :checkDebugManifest

    :preReleaseBuild UP-TO-DATE

    :prepareComAndroidSupportSupportCompat2520Library

    :prepareComAndroidSupportSupportCoreUi2520Library

    :prepareComAndroidSupportSupportCoreUtils2520Library

    :prepareComAndroidSupportSupportFragment2520Library

    :prepareComAndroidSupportSupportMediaCompat2520Library

    :prepareComAndroidSupportSupportV42520Library

    :prepareComGoogleAndroidGmsPlayServicesBase1142Library

    :prepareComGoogleAndroidGmsPlayServicesBaseLicense1142Library

    :prepareComGoogleAndroidGmsPlayServicesBasement1142Library

    :prepareComGoogleAndroidGmsPlayServicesBasementLicense1142Library

    :prepareComGoogleAndroidGmsPlayServicesTasks1142Library

    :prepareComGoogleAndroidGmsPlayServicesTasksLicense1142Library

    :prepareComGoogleFirebaseFirebaseAuth1142Library

    :prepareComGoogleFirebaseFirebaseAuthLicense1142Library

    :prepareComGoogleFirebaseFirebaseCommon1142Library

    :prepareComGoogleFirebaseFirebaseCommonLicense1142Library

    :prepareComGoogleFirebaseFirebaseDatabase1122Library

    :prepareComGoogleFirebaseFirebaseDatabaseConnection1122Library

    :prepareNetVplayPluginsPluginFirebase21321Library

    :prepareDebugDependencies

    :compileDebugAidl

    :compileDebugRenderscript

    :generateDebugBuildConfig

    :generateDebugResValues

    :generateDebugResources

    :mergeDebugResources

    :processDebugManifest

    :processDebugResources

    :generateDebugSources

    :incrementalDebugJavaCompilationSafeguard

    :javaPreCompileDebug

    :compileDebugJavaWithJavac

    :compileDebugJavaWithJavac – is not incremental (e.g. outputs have changed, no previous execution, etc.).

    Note: Some input files use or override a deprecated API.

    Note: Recompile with -Xlint:deprecation for details.

    :compileDebugNdk NO-SOURCE

    :compileDebugSources

    :mergeDebugShaders

    :compileDebugShaders

    :generateDebugAssets

    :mergeDebugAssets

    :transformClassesWithDexForDebug

    Running dex as a separate process.

    To run dex in process, the Gradle daemon needs a larger heap.

    It currently has 1024 MB.

    For faster builds, increase the maximum heap size for the Gradle daemon to at least 1536 MB.

    To do this set org.gradle.jvmargs=-Xmx1536M in the project gradle.properties.

    For more information see https://docs.gradle.org/current/userguide/build_environment.html

    Dex: Error converting bytecode to dex:

    :transformClassesWithDexForDebug FAILED

    Cause: com.android.dex.DexException: Multiple dex files define Lcom/google/android/gms/internal/zzdmw;

    UNEXPECTED TOP-LEVEL EXCEPTION:

    com.android.dex.DexException: Multiple dex files define Lcom/google/android/gms/internal/zzdmw;

    at com.android.dx.merge.DexMerger.readSortableTypes(DexMerger.java:661)

    at com.android.dx.merge.DexMerger.getSortedTypes(DexMerger.java:616)

    at com.android.dx.merge.DexMerger.mergeClassDefs(DexMerger.java:598)

    at com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:171)

    at com.android.dx.merge.DexMerger.merge(DexMerger.java:198)

    at com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main.java:506)

    at com.android.dx.command.dexer.Main.runMonoDex(Main.java:336)

    at com.android.dx.command.dexer.Main.runDx(Main.java:291)

    at com.android.dx.command.dexer.Main.main(Main.java:247)

    at com.android.dx.command.Main.main(Main.java:94)

    BUILD FAILED

    Total time: 25.375 secs

    FAILURE: Build failed with an exception.

    * What went wrong:

    Execution failed for task ‘:transformClassesWithDexForDebug’.

    > com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException: Error while executing java process with main class com.android.dx.command.Main with arguments {–dex –num-threads=4 –output /media/pgrant/extdev01/venture/vpappdev/build-plutest1-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/transforms/dex/debug/folders/1000/1f/main /media/pgrant/extdev01/venture/vpappdev/build-plutest1-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/classes_d12cdc3e474a76ac7aad58724c3eb063f3976421.jar /media/pgrant/extdev01/venture/vpappdev/build-plutest1-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/debug_69253fe79022e18bc1fb3e9935c08672f581c93f.jar /media/pgrant/extdev01/venture/vpappdev/build-plutest1-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/classes_78b9e8c3ea2a475d5cd02b7ac1235c5fbc6f4ed2.jar /media/pgrant/extdev01/venture/vpappdev/build-plutest1-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/classes_3e90ce4abd0fabaacee22243c8252f365ea15fe4.jar /media/pgrant/extdev01/venture/vpappdev/build-plutest1-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/QtAndroid-bundled_289314fa8cabbffd9735a6046d76a8c26b99a6c1.jar /media/pgrant/extdev01/venture/vpappdev/build-plutest1-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/classes_6f219c96ac75afab0b43cc62cee0cad7f61afdad.jar /media/pgrant/extdev01/venture/vpappdev/build-plutest1-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/QtAndroidBearer-bundled_83181a395a9140c29090c27e209f737e0dae859d.jar /media/pgrant/extdev01/venture/vpappdev/build-plutest1-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/QtPositioning-bundled_0a4510e639ef487eb325b49de1287996c7e62c03.jar /media/pgrant/extdev01/venture/vpappdev/build-plutest1-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/classes_b314c13c2919603f89dbbf0f282119d16854e8bf.jar /media/pgrant/extdev01/venture/vpappdev/build-plutest1-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/classes_f8dc88f6c8590450c67b4787b29afac9c6d6c707.jar /media/pgrant/extdev01/venture/vpappdev/build-plutest1-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/classes_a96be4bc777304daf45b4aa744577b74edb603f7.jar /media/pgrant/extdev01/venture/vpappdev/build-plutest1-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/classes_78febd5629acd31fe7a4849b6e6fd97afa08d12f.jar /media/pgrant/extdev01/venture/vpappdev/build-plutest1-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/classes_ff97acdc08b8e66de7dd5660914262762d8375c1.jar /media/pgrant/extdev01/venture/vpappdev/build-plutest1-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/QtMultimedia-bundled_dfb5d5751bf9b9fd5a03c4f6eb3e2367a22fa8ab.jar /media/pgrant/extdev01/venture/vpappdev/build-plutest1-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/classes_ecceccf1391ade776e42b17725d2ec8459af9334.jar /media/pgrant/extdev01/venture/vpappdev/build-plutest1-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/support-annotations-25.2.0_ce4d63d2eda2d3947d93af43518aaf8a60b60665.jar /media/pgrant/extdev01/venture/vpappdev/build-plutest1-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/classes_16a607491e2bbc9705de7599a3883045dfc30537.jar /media/pgrant/extdev01/venture/vpappdev/build-plutest1-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/classes_fa7f55858399e9eed0a0c4626dfa4d3d16e1ad7c.jar /media/pgrant/extdev01/venture/vpappdev/build-plutest1-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/VPlay_2ff90b27070c1d031d44e949a708b259e0289219.jar /media/pgrant/extdev01/venture/vpappdev/build-plutest1-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/classes_65a4e770a5f0dcaa0b6f4d08712a24a6c20de473.jar /media/pgrant/extdev01/venture/vpappdev/build-plutest1-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/classes_749b9edef4859a326fb47bc1e92eaccf16741780.jar}

    * Try:

    Run with –stacktrace option to get the stack trace. Run with –info or –debug option to get more log output.

    Building the android package failed!

    — For more information, run this command with –verbose.

    09:47:05: The process “/home/pgrant/FelgoSDK/5.9.2/android_armv7/bin/androiddeployqt” exited with code 14.

    Error while building/deploying project plutest1 (kit: Android for armeabi-v7a (GCC 4.9, Qt 5.9.2 for Android armv7))

    When executing step “Build Android APK”

    09:47:05: Elapsed time: 00:32.

     

    Any further suggestions?

    Do you see same problem when you build your plugin project?

    What Android SDK/NDK version to you have?

    What SDK packages are important to have?

    BR

    Paul

     

    #17416

    paul grant

    Hi Gunther,

    Any thoughts! Can you make your plugin example work on your installation?

    If so what do you have installed? SDK packages / NDK version?

     

    Best Regards,

    Paul Grant

     

     

    #17421

    Günther
    Felgo Team

    Hi Paul,

    which version of PluginDemo are you trying to build? Can you try with the latest version available on GitHub: https://github.com/Felgo/PluginDemo

    I am able to build this project for Android (currently using Android-26, NDK 14.1)

    Best,
    Günther

    #17435

    paul grant

    Hi Gunther,

    I downloaded the version of the plugin demo you provided. When I initially built it, it compiled fine!

    However when I looked more closely, I noticed that in build.gradle file the firebase plugin is commented out.

    When I un-comment the plugin the build fails with the similar error to before ( i have attached failur message below).

     

    1. I’m really under pressure to get what was working previously, working again, so can you confirm

    that its actually working for you?

    i.e. Can you confirm that you are able to build the plugin demo for android with firebase plugin operational?

     

    2. If so what versions of SDK packages / NDK do you have installed?

     

    Build failure output:

    To run dex in process, the Gradle daemon needs a larger heap.

    It currently has 1024 MB.

    For faster builds, increase the maximum heap size for the Gradle daemon to at least 1536 MB.

    To do this set org.gradle.jvmargs=-Xmx1536M in the project gradle.properties.

    For more information see https://docs.gradle.org/current/userguide/build_environment.html

    Dex: Error converting bytecode to dex:

    Cause: com.android.dex.DexException: Multiple dex files define Lcom/google/android/gms/internal/zzed;

    :transformClassesWithDexForDebug FAILED

    UNEXPECTED TOP-LEVEL EXCEPTION:

    com.android.dex.DexException: Multiple dex files define Lcom/google/android/gms/internal/zzed;

    at com.android.dx.merge.DexMerger.readSortableTypes(DexMerger.java:661)

    at com.android.dx.merge.DexMerger.getSortedTypes(DexMerger.java:616)

    at com.android.dx.merge.DexMerger.mergeClassDefs(DexMerger.java:598)

    at com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:171)

    at com.android.dx.merge.DexMerger.merge(DexMerger.java:198)

    at com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main.java:506)

    at com.android.dx.command.dexer.Main.runMonoDex(Main.java:336)

    at com.android.dx.command.dexer.Main.runDx(Main.java:291)

    at com.android.dx.command.dexer.Main.main(Main.java:247)

    at com.android.dx.command.Main.main(Main.java:94)

    BUILD FAILED

    Total time: 29.565 secs

    FAILURE: Build failed with an exception.

    * What went wrong:

    Execution failed for task ‘:transformClassesWithDexForDebug’.

    > com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException: Error while executing java process with main class com.android.dx.command.Main with arguments {–dex –num-threads=4 –output /media/pgrant/extdev01/venture/vpappdev/build-PluginDemo-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/transforms/dex/debug/folders/1000/1f/main /media/pgrant/extdev01/venture/vpappdev/build-PluginDemo-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/bolts-applinks-1.4.0_d15e41fc8e99d0752e92608e9dcd9eb1a928e203.jar /media/pgrant/extdev01/venture/vpappdev/build-PluginDemo-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/classes_63fdadd6c7b7b0add36b68e3201e1ac11bc4f0b4.jar /media/pgrant/extdev01/venture/vpappdev/build-PluginDemo-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/classes_ff07b5bcb5a2a79611db61578d3eee1d93b0e138.jar /media/pgrant/extdev01/venture/vpappdev/build-PluginDemo-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/classes_f8dc88f6c8590450c67b4787b29afac9c6d6c707.jar /media/pgrant/extdev01/venture/vpappdev/build-PluginDemo-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/classes_3e90ce4abd0fabaacee22243c8252f365ea15fe4.jar /media/pgrant/extdev01/venture/vpappdev/build-PluginDemo-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/classes_f04eddcc92bff17e962d7bb90762ebca26cfed37.jar /media/pgrant/extdev01/venture/vpappdev/build-PluginDemo-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/classes_14e40aa517192dccd1695fdfa7f7e3aad2393ed7.jar /media/pgrant/extdev01/venture/vpappdev/build-PluginDemo-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/classes_6f219c96ac75afab0b43cc62cee0cad7f61afdad.jar /media/pgrant/extdev01/venture/vpappdev/build-PluginDemo-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/AndroidStoreGooglePlay_8e2028f343aa28e4c2403a921ef4b29ab6dbf5d0.jar /media/pgrant/extdev01/venture/vpappdev/build-PluginDemo-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/classes_a96be4bc777304daf45b4aa744577b74edb603f7.jar /media/pgrant/extdev01/venture/vpappdev/build-PluginDemo-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/QtMultimedia-bundled_3df377caddef44a435f955cae738ec6195f1d3e4.jar /media/pgrant/extdev01/venture/vpappdev/build-PluginDemo-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/support-annotations-25.2.0_ce4d63d2eda2d3947d93af43518aaf8a60b60665.jar /media/pgrant/extdev01/venture/vpappdev/build-PluginDemo-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/QtAndroid-bundled_506676f51ba1c802ee7bab4f0ac80f9bdc3457aa.jar /media/pgrant/extdev01/venture/vpappdev/build-PluginDemo-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/QtAndroidBearer-bundled_4f4f118380e222dc6f9b6fec60032d1f3634941c.jar /media/pgrant/extdev01/venture/vpappdev/build-PluginDemo-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/classes_ecceccf1391ade776e42b17725d2ec8459af9334.jar /media/pgrant/extdev01/venture/vpappdev/build-PluginDemo-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/AndroidStore_48a6b1483ca18ca6325bf9fedf3044044578e2cd.jar /media/pgrant/extdev01/venture/vpappdev/build-PluginDemo-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/classes_78febd5629acd31fe7a4849b6e6fd97afa08d12f.jar /media/pgrant/extdev01/venture/vpappdev/build-PluginDemo-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/classes_16a607491e2bbc9705de7599a3883045dfc30537.jar /media/pgrant/extdev01/venture/vpappdev/build-PluginDemo-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/classes_749b9edef4859a326fb47bc1e92eaccf16741780.jar /media/pgrant/extdev01/venture/vpappdev/build-PluginDemo-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/classes_8da633dbaeb640fee1ca3c4f476859a663868dc7.jar /media/pgrant/extdev01/venture/vpappdev/build-PluginDemo-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/debug_6a82540912ec56dd3beedeab45ebeb81a8a8d360.jar /media/pgrant/extdev01/venture/vpappdev/build-PluginDemo-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/square-otto-1.3.2_1ede0f1d76efd8e55418c15daf1dd7efe08b69a0.jar /media/pgrant/extdev01/venture/vpappdev/build-PluginDemo-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/QtPositioning-bundled_acafa63a166a63abc6fe473726afcc19f37faad2.jar /media/pgrant/extdev01/venture/vpappdev/build-PluginDemo-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/classes_68d8a27c89d2d86e28d5767e0115cd90b60034ad.jar /media/pgrant/extdev01/venture/vpappdev/build-PluginDemo-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/classes_f5b1e1d90890ce7a96859f534dd696180fd99188.jar /media/pgrant/extdev01/venture/vpappdev/build-PluginDemo-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/classes_f7f172aa48b6eea68971c6313d8ed8c2fc1194a3.jar /media/pgrant/extdev01/venture/vpappdev/build-PluginDemo-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/classes_78b9e8c3ea2a475d5cd02b7ac1235c5fbc6f4ed2.jar /media/pgrant/extdev01/venture/vpappdev/build-PluginDemo-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/classes_ff97acdc08b8e66de7dd5660914262762d8375c1.jar /media/pgrant/extdev01/venture/vpappdev/build-PluginDemo-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/in-app-purchasing-1.0.3_5499c11323efe84265a9935196d4980ca685b744.jar /media/pgrant/extdev01/venture/vpappdev/build-PluginDemo-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/bolts-tasks-1.4.0_7db298ff1620e932430fcd2e2d798e47c54cb9a0.jar /media/pgrant/extdev01/venture/vpappdev/build-PluginDemo-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/classes_938c0d6c7189177d2a1bf10107cff0d2f3e2e9b3.jar /media/pgrant/extdev01/venture/vpappdev/build-PluginDemo-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/classes_b314c13c2919603f89dbbf0f282119d16854e8bf.jar /media/pgrant/extdev01/venture/vpappdev/build-PluginDemo-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/classes_65a4e770a5f0dcaa0b6f4d08712a24a6c20de473.jar /media/pgrant/extdev01/venture/vpappdev/build-PluginDemo-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/classes_4e5ec3948f7ed28a258733f4d5707fedcc651942.jar /media/pgrant/extdev01/venture/vpappdev/build-PluginDemo-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/classes_6bc5c4b2a4364c0c9b5486e05c7cbf8b16a76bde.jar /media/pgrant/extdev01/venture/vpappdev/build-PluginDemo-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/SoomlaAndroidCore_a08b06e01126a1575389463b5e1d82e0222da968.jar /media/pgrant/extdev01/venture/vpappdev/build-PluginDemo-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/classes_324a9fb32e6ae5224904703d176e53ad64de3999.jar /media/pgrant/extdev01/venture/vpappdev/build-PluginDemo-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/classes_7658e813a585a6e5b7722c8d063324b927c01cb4.jar /media/pgrant/extdev01/venture/vpappdev/build-PluginDemo-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/classes_fa7f55858399e9eed0a0c4626dfa4d3d16e1ad7c.jar /media/pgrant/extdev01/venture/vpappdev/build-PluginDemo-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/chartboost_a0f92cafc36e16a5a7d723f5567cb839b9a1eaed.jar /media/pgrant/extdev01/venture/vpappdev/build-PluginDemo-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/classes_d12cdc3e474a76ac7aad58724c3eb063f3976421.jar /media/pgrant/extdev01/venture/vpappdev/build-PluginDemo-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/VPlay_9b111d03028be8712816c8ce2fffd1dd62e76afe.jar /media/pgrant/extdev01/venture/vpappdev/build-PluginDemo-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build/build/intermediates/pre-dexed/debug/AndroidStoreAmazon_75161c1deb00251b04d5675bde173ffffe5dbbcf.jar}

    * Try:

    Run with –stacktrace option to get the stack trace. Run with –info or –debug option to get more log output.

    Building the android package failed!

    — For more information, run this command with –verbose.

    16:10:47: The process “/home/pgrant/FelgoSDK/5.9.2/android_armv7/bin/androiddeployqt” exited with code 14.

    Error while building/deploying project PluginDemo (kit: Android for armeabi-v7a (GCC 4.9, Qt 5.9.2 for Android armv7))

    When executing step “Build Android APK”

    16:10:47: Elapsed time: 00:37.

     

     

     

     

     

    #17440

    Günther
    Felgo Team

    Hi Paul!

    I was able to verify the issue, there might be an issues with google dependency versions.
    We’ll have a closer look and get back to you as soon as possible.

    Best,
    Günther

    #17445

    Alex
    Felgo Team

    Hi Paul,

    Alex here from Felgo. We did a couple of tests and found a possible issue with dependencies, as Günther already mentioned. We pushed a fix to our Maven repository, can you please test your build again?

    Just to make sure that you’re using the latest dependencies, can you open the android-build subfolder of your build directory and run the following command (after the $; if you’re on Windows, replace the “./gradlew” with “gradlew.bat”):

    build-*-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Debug/android-build$ ./gradlew dependencies --refresh-dependencies

    You should then see a line “+— net.vplay.plugins:plugin-firebase:2.+ -> 2.13.2-6” (please not the version number 2.13.2-6). If you see that, your build should be running fine again!

    Please let us know if that fixes your issue.

    Many thanks,

    Alex from Felgo

Viewing 12 posts - 1 through 12 (of 12 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded