Find the Best Demos and Examples

Check out this quick tour to find the best demos and examples for you, and to see how the Felgo SDK can help you to develop your next app or game!

Forums

OverviewFelgo 2 Support (Qt 5) › Android app build not working

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #22542

    sAMA SAMA

    Hi there!!

    I’m at the final stage of developing my game and the only thing left is to add some sound effects and such, but whenever I try to build my APK file the editor gives me these errors:

    19:26:34: Running steps for project TabTab...
    19:26:34: Starting: "D:\android-ndk-r19c-windows-x86_64\android-ndk-r19c\prebuilt\windows-x86_64\bin\make.exe" clean -j4
    del qrc_resources_user.cpp
    del moc_predefs.h
    Could Not Find D:\felgoProjects\FinalBuild\build-TabTab-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Debug\qrc_resources_user.cpp
    Could Not Find D:\felgoProjects\FinalBuild\build-TabTab-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Debug\moc_predefs.h
    del main.obj qrc_resources_user.obj
    Could Not Find D:\felgoProjects\FinalBuild\build-TabTab-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Debug\main.obj
    del *~ core *.core
    Could Not Find D:\felgoProjects\FinalBuild\build-TabTab-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Debug\*~
    19:26:35: The process "D:\android-ndk-r19c-windows-x86_64\android-ndk-r19c\prebuilt\windows-x86_64\bin\make.exe" exited normally.
    19:26:35: Starting: "E:\felgo\Felgo\android_armv7\bin\qmake.exe" D:\felgoProjects\FinalBuild\TabTab\TabTab.pro -spec android-clang "CONFIG+=debug" "CONFIG+=qml_debug"
    19:26:36: The process "E:\felgo\Felgo\android_armv7\bin\qmake.exe" exited normally.
    19:26:36: Starting: "D:\android-ndk-r19c-windows-x86_64\android-ndk-r19c\prebuilt\windows-x86_64\bin\make.exe" -f D:/felgoProjects/FinalBuild/build-TabTab-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Debug/Makefile qmake_all
    make: Nothing to be done for `qmake_all'.
    19:26:36: The process "D:\android-ndk-r19c-windows-x86_64\android-ndk-r19c\prebuilt\windows-x86_64\bin\make.exe" exited normally.
    19:26:36: Elapsed time: ٠:٠٠:٠٢.

    Mind you app is running fine on the live client, I created a new one page project with ad-mob added and it built successfuly, after adding my admob id’s and the code to the main.qml it stopped building, why is that?

    #22543

    sAMA SAMA

    Additional info:

    I tried rebuilding the app after setting the android API to 16 and got this:

    20:13:55: Running steps for project TabTab...
    20:13:55: Starting: "D:\android-ndk-r19c-windows-x86_64\android-ndk-r19c\prebuilt\windows-x86_64\bin\make.exe" clean -j4
    The API level set for the APK is less than the minimum required by the kit.
    The minimum API level required by the kit is 21.
    Error while building/deploying project TabTab (kit: Android for armeabi-v7a (Clang Qt 5.13.2 for Android ARMv7))
    When executing step "Build Android APK"
    del qrc_resources_user.cpp
    del moc_predefs.h
    Could Not Find D:\felgoProjects\FinalBuild\build-TabTab-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Debug\moc_predefs.h
    del main.obj qrc_resources_user.obj
    del *~ core *.core
    Could Not Find D:\felgoProjects\FinalBuild\build-TabTab-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Debug\*~
    20:13:57: The process "D:\android-ndk-r19c-windows-x86_64\android-ndk-r19c\prebuilt\windows-x86_64\bin\make.exe" exited normally.
    20:13:58: Elapsed time: ٠:٠٠:٠٣.

    So admob needs minimum android API of 21? but this way my game won’t run on older android versions, so anyway I changed the version again t 21 and rebuilt the game again and got this:

    Initializing deployment to Android device/simulator
    Deploying to LGK5204441770d
    20:19:11: Running steps for project TabTab...
    20:19:11: Configuration unchanged, skipping qmake step.
    20:19:11: Starting: "D:\android-ndk-r19c-windows-x86_64\android-ndk-r19c\prebuilt\windows-x86_64\bin\make.exe" -j4
    D:\android-ndk-r19c-windows-x86_64\android-ndk-r19c/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++ -c -D__ANDROID_API__=21 -target armv7-none-linux-androideabi -gcc-toolchain D:\android-ndk-r19c-windows-x86_64\android-ndk-r19c/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64 -fno-limit-debug-info -DANDROID_HAS_WSTRING --sysroot=D:\android-ndk-r19c-windows-x86_64\android-ndk-r19c/sysroot -isystem D:\android-ndk-r19c-windows-x86_64\android-ndk-r19c/sysroot/usr/include/arm-linux-androideabi -isystem D:\android-ndk-r19c-windows-x86_64\android-ndk-r19c/sources/cxx-stl/llvm-libc++/include -isystem D:\android-ndk-r19c-windows-x86_64\android-ndk-r19c/sources/android/support/include -isystem D:\android-ndk-r19c-windows-x86_64\android-ndk-r19c/sources/cxx-stl/llvm-libc++abi/include -fstack-protector-strong -DANDROID -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -fno-builtin-memmove -g -g -marm -O0 -Wall -W -D_REENTRANT -fPIC -DPRODUCT_LICENSE_KEY=\"D8B43EF6DFE08754FE4E55C45B7AC54A8D8FB25F33D60BA67A3BE3687BFF0A3FC4041FFDB7347D0E8437ABA8798A73875F2E267D0FB78CE1EA0A71AD27223320578365B534060E389BBA2D14F5C5A295B65BCC10E831FAAB1ECA1EA911BB2C96713FA2984FC1E7D7EC4B0A5BD0F8F8E590A56A8B264663ACFF3883D1B9BF9C4A83AFD9D257ECECE8C88D8A21E4C6EDB4BB9DC2CA2593CFA3CCEC11CE74F2C544F829D8A69317A02F9B59BEDD6B11C19B5A146EEEECEBB34FFEA659C7F5014491A1721003581EFB19E11D101A095465C31444C482803BD024E4488BF92C84E8872DFE957BB322CE9787E65CFB477D9176A7EE97826ED33AC3D705AD39A0EB3D4510A19D2FEB0163701FC096F665986F2C693CFD793429F3F7B7BDA29995A09E45A43F97A50EAE22B9F057974C136A7F39BA6E6FDD864CC451135ABC22CBD51AD2D4C7C97D852061447F3109255E5D366A3C2250C8982CA2B92B9821770881F966EF2D356654FADADF87226BEC00C8FFC5\" -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..\TabTab -I. -IE:\felgo\Felgo\android_armv7\include\Felgo -IE:\felgo\Felgo\android_armv7\include -IE:\felgo\Felgo\android_armv7\include\QtQuick -IE:\felgo\Felgo\android_armv7\include\QtWidgets -IE:\felgo\Felgo\android_armv7\include\QtMultimedia -IE:\felgo\Felgo\android_armv7\include\QtGui -IE:\felgo\Felgo\android_armv7\include\QtQml -IE:\felgo\Felgo\android_armv7\include\QtWebSockets -IE:\felgo\Felgo\android_armv7\include\QtNetwork -IE:\felgo\Felgo\android_armv7\include\QtSql -IE:\felgo\Felgo\android_armv7\include\QtCore -I. -IE:\felgo\Felgo\android_armv7\mkspecs\android-clang -o main.obj ..\TabTab\main.cpp
    E:\felgo\Felgo\android_armv7\bin\rcc.exe -name resources_user E:\felgo\Felgo\android_armv7\mkspecs\common\felgo\resources_user.qrc -o qrc_resources_user.cpp
    D:\android-ndk-r19c-windows-x86_64\android-ndk-r19c/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++ -c -D__ANDROID_API__=21 -target armv7-none-linux-androideabi -gcc-toolchain D:\android-ndk-r19c-windows-x86_64\android-ndk-r19c/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64 -fno-limit-debug-info -DANDROID_HAS_WSTRING --sysroot=D:\android-ndk-r19c-windows-x86_64\android-ndk-r19c/sysroot -isystem D:\android-ndk-r19c-windows-x86_64\android-ndk-r19c/sysroot/usr/include/arm-linux-androideabi -isystem D:\android-ndk-r19c-windows-x86_64\android-ndk-r19c/sources/cxx-stl/llvm-libc++/include -isystem D:\android-ndk-r19c-windows-x86_64\android-ndk-r19c/sources/android/support/include -isystem D:\android-ndk-r19c-windows-x86_64\android-ndk-r19c/sources/cxx-stl/llvm-libc++abi/include -fstack-protector-strong -DANDROID -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -fno-builtin-memmove -g -g -marm -O0 -Wall -W -D_REENTRANT -fPIC -DPRODUCT_LICENSE_KEY=\"D8B43EF6DFE08754FE4E55C45B7AC54A8D8FB25F33D60BA67A3BE3687BFF0A3FC4041FFDB7347D0E8437ABA8798A73875F2E267D0FB78CE1EA0A71AD27223320578365B534060E389BBA2D14F5C5A295B65BCC10E831FAAB1ECA1EA911BB2C96713FA2984FC1E7D7EC4B0A5BD0F8F8E590A56A8B264663ACFF3883D1B9BF9C4A83AFD9D257ECECE8C88D8A21E4C6EDB4BB9DC2CA2593CFA3CCEC11CE74F2C544F829D8A69317A02F9B59BEDD6B11C19B5A146EEEECEBB34FFEA659C7F5014491A1721003581EFB19E11D101A095465C31444C482803BD024E4488BF92C84E8872DFE957BB322CE9787E65CFB477D9176A7EE97826ED33AC3D705AD39A0EB3D4510A19D2FEB0163701FC096F665986F2C693CFD793429F3F7B7BDA29995A09E45A43F97A50EAE22B9F057974C136A7F39BA6E6FDD864CC451135ABC22CBD51AD2D4C7C97D852061447F3109255E5D366A3C2250C8982CA2B92B9821770881F966EF2D356654FADADF87226BEC00C8FFC5\" -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..\TabTab -I. -IE:\felgo\Felgo\android_armv7\include\Felgo -IE:\felgo\Felgo\android_armv7\include -IE:\felgo\Felgo\android_armv7\include\QtQuick -IE:\felgo\Felgo\android_armv7\include\QtWidgets -IE:\felgo\Felgo\android_armv7\include\QtMultimedia -IE:\felgo\Felgo\android_armv7\include\QtGui -IE:\felgo\Felgo\android_armv7\include\QtQml -IE:\felgo\Felgo\android_armv7\include\QtWebSockets -IE:\felgo\Felgo\android_armv7\include\QtNetwork -IE:\felgo\Felgo\android_armv7\include\QtSql -IE:\felgo\Felgo\android_armv7\include\QtCore -I. -IE:\felgo\Felgo\android_armv7\mkspecs\android-clang -o qrc_resources_user.obj qrc_resources_user.cpp
    D:\android-ndk-r19c-windows-x86_64\android-ndk-r19c/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++ -D__ANDROID_API__=21 -target armv7-none-linux-androideabi -gcc-toolchain D:\android-ndk-r19c-windows-x86_64\android-ndk-r19c/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64 -fno-limit-debug-info -Wl,--exclude-libs,libgcc.a -Wl,--exclude-libs,libatomic.a -nostdlib++ -Wl,--exclude-libs,libunwind.a --sysroot=D:\android-ndk-r19c-windows-x86_64\android-ndk-r19c/platforms/android-21/arch-arm/ -Wl,-soname,libTabTab.so -Wl,-rpath=E:/felgo/Felgo/android_armv7/lib -Wl,--no-undefined -Wl,-z,noexecstack -shared -o libTabTab.so main.obj qrc_resources_user.obj   -LE:/felgo/Felgo/android_armv7/lib -lFelgo -lcrypto -lssl E:/felgo/Felgo/android_armv7/lib/libQt5Quick.so -Lc:\Utils\Android\android-ndk-r19c/sources/cxx-stl/llvm-libc++/libs/armeabi-v7a E:/felgo/Felgo/android_armv7/lib/libQt5Widgets.so E:/felgo/Felgo/android_armv7/lib/libQt5Multimedia.so E:/felgo/Felgo/android_armv7/lib/libQt5Gui.so E:/felgo/Felgo/android_armv7/lib/libQt5Qml.so E:/felgo/Felgo/android_armv7/lib/libQt5WebSockets.so E:/felgo/Felgo/android_armv7/lib/libQt5Network.so E:/felgo/Felgo/android_armv7/lib/libQt5Sql.so E:/felgo/Felgo/android_armv7/lib/libQt5Core.so -lGLESv2  -LD:\android-ndk-r19c-windows-x86_64\android-ndk-r19c/sources/cxx-stl/llvm-libc++/libs/armeabi-v7a D:\android-ndk-r19c-windows-x86_64\android-ndk-r19c/sources/cxx-stl/llvm-libc++/libs/armeabi-v7a/libc++.so.21 -llog -lz -lm -ldl -lc
    20:19:21: The process "D:\android-ndk-r19c-windows-x86_64\android-ndk-r19c\prebuilt\windows-x86_64\bin\make.exe" exited normally.
    20:19:21: Removing directory D:\felgoProjects\FinalBuild\build-TabTab-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Debug\android-build/assets
    20:19:22: Removing directory D:\felgoProjects\FinalBuild\build-TabTab-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Debug\android-build/libs
    20:19:22: Starting: "D:\android-ndk-r19c-windows-x86_64\android-ndk-r19c\prebuilt\windows-x86_64\bin\make.exe" "INSTALL_ROOT=D:\felgoProjects\FinalBuild\build-TabTab-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Debug\android-build" install
    E:\felgo\Felgo\android_armv7\bin\qmake.exe -install qinstall D:\felgoProjects\FinalBuild\TabTab\qml D:\felgoProjects\FinalBuild\build-TabTab-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Debug\android-build\assets\qml
    E:\felgo\Felgo\android_armv7\bin\qmake.exe -install qinstall D:\felgoProjects\FinalBuild\TabTab\assets D:\felgoProjects\FinalBuild\build-TabTab-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Debug\android-build\assets\assets
    E:\felgo\Felgo\android_armv7\bin\qmake.exe -install qinstall -exe libTabTab.so D:\felgoProjects\FinalBuild\build-TabTab-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Debug\android-build\libs\armeabi-v7a\libTabTab.so
    20:19:24: The process "D:\android-ndk-r19c-windows-x86_64\android-ndk-r19c\prebuilt\windows-x86_64\bin\make.exe" exited normally.
    20:19:24: Starting: "E:\felgo\Felgo\android_armv7\bin\androiddeployqt.exe" --input D:/felgoProjects/FinalBuild/build-TabTab-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Debug/android-libTabTab.so-deployment-settings.json --output D:/felgoProjects/FinalBuild/build-TabTab-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Debug/android-build --android-platform android-29 --jdk "C:/Program Files/Java/jdk1.8.0_181" --gradle
    Generating Android Package
      Input file: D:/felgoProjects/FinalBuild/build-TabTab-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Debug/android-libTabTab.so-deployment-settings.json
      Output directory: D:/felgoProjects/FinalBuild/build-TabTab-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Debug/android-build/
      Application binary: D:/felgoProjects/FinalBuild/build-TabTab-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Debug/libTabTab.so
      Android build platform: android-29
      Install to device: No
      -- Skipping E:/felgo/Felgo/android_armv7/plugins/position/libqtposition_serialnmea.so. It has unmet dependencies: lib/libQt5SerialPort.so.
      -- Skipping E:/felgo/Felgo/android_armv7/plugins/iconengines/libqsvgicon.so. It has unmet dependencies: lib/libQt5Svg.so.
      -- Skipping E:/felgo/Felgo/android_armv7/plugins/imageformats/libqsvg.so. It has unmet dependencies: lib/libQt5Svg.so.
    :checkDebugClasspath UP-TO-DATE
    :preBuild UP-TO-DATE
    :preDebugBuild UP-TO-DATE
    :compileDebugAidl UP-TO-DATE
    :compileDebugRenderscript UP-TO-DATE
    :checkDebugManifest UP-TO-DATE
    :generateDebugBuildConfig UP-TO-DATE
    :prepareLintJar UP-TO-DATE
    :mainApkListPersistenceDebug UP-TO-DATE
    :generateDebugResValues UP-TO-DATE
    :generateDebugResources UP-TO-DATE
    :mergeDebugResources UP-TO-DATE
    :createDebugCompatibleScreenManifests UP-TO-DATE
    :processDebugManifest
    D:\felgoProjects\FinalBuild\build-TabTab-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Debug\android-build\AndroidManifest.xml:68:5-79 Warning:
    	Element uses-permission#android.permission.ACCESS_FINE_LOCATION at AndroidManifest.xml:68:5-79 duplicated with element declared at AndroidManifest.xml:65:5-79
    D:\felgoProjects\FinalBuild\build-TabTab-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Debug\android-build\AndroidManifest.xml:22:18-91 Error:
    	Attribute application@appComponentFactory value=(android.support.v4.app.CoreComponentFactory) from [com.android.support:support-compat:28.0.0] AndroidManifest.xml:22:18-91
    	is also present at [androidx.core:core:1.0.0] AndroidManifest.xml:22:18-86 value=(androidx.core.app.CoreComponentFactory).
    	Suggestion: add 'tools:replace="android:appComponentFactory"' to <application> element at AndroidManifest.xml:3:5-56:19 to override.
    
    See http://g.co/androidstudio/manifest-merger for more information about the manifest merger.
    
    :processDebugManifest FAILED
    
    FAILURE: Build failed with an exception.
    
    * What went wrong:
    Execution failed for task ':processDebugManifest'.
    > Manifest merger failed with multiple errors, see logs
    
    * 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 1m 14s
    12 actionable tasks: 1 executed, 11 up-to-date
    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
    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.impl
    Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.Fusion.impl
    Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.Imagine.impl
    Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.Imagine.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.Controls.Universal.impl
    Building the android package failed!
      -- For more information, run this command with --verbose.
    20:21:13: The process "E:\felgo\Felgo\android_armv7\bin\androiddeployqt.exe" exited with code 14.
    Error while building/deploying project TabTab (kit: Android for armeabi-v7a (Clang Qt 5.13.2 for Android ARMv7))
    When executing step "Build Android APK"
    20:21:14: Elapsed time: ٠:٠٢:٠٣.

    Why?

    #22551

    Alex
    Felgo Team

    Hi,

    please make sure that you:

    • Clean the project (run “clean” step in Qt Creator) before building it with a new version of Felgo
    • That you followed the plugin integration guide in our docs: https://felgo.com/doc/plugin-admob/#android-integration-steps (this is pre-integrated in the live client but is needed for deploying manually with Qt Creator)
    • That your AndroidManifest.xml and build.gradle files match the latest format, you can compare it to the files of a new project created with Qt Creator

    Best,
    Alex

    #22562

    sAMA SAMA

    Hi there,

    • Clean the project (run “clean” step in Qt Creator) before building it with a new version of Felgo > Couldn’t perform clean I get this:
    10:26:02: Running steps for project TabTab...
    10:26:02: Starting: "D:\android-ndk-r19c-windows-x86_64\android-ndk-r19c\prebuilt\windows-x86_64\bin\make.exe" clean -j4
    del qrc_resources.cpp qrc_resources_user.cpp
    del moc_predefs.h
    Could Not Find D:\felgoProjects\FinalBuild\build-TabTab-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Debug\moc_predefs.h
    del main.obj qrc_resources.obj qrc_resources_user.obj
    del *~ core *.core
    Could Not Find D:\felgoProjects\FinalBuild\build-TabTab-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Debug\*~
    10:26:03: The process "D:\android-ndk-r19c-windows-x86_64\android-ndk-r19c\prebuilt\windows-x86_64\bin\make.exe" exited normally.
    10:26:03: Elapsed time: ٠:٠٠:٠١.
    • followed the plugin integration guide > Done
    • AndroidManifest.xml and build.gradle files match the latest format > Done

    Still I can’t build My APK

    Cheers

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

RSS feed for this thread

You must be logged in to reply to this topic.