Can't perform android app release



  • From what I understand you need to build release the app to get the final APK right?

    I keep getting the following errors on the console output:

    E:\felgo\Felgo\android_armv7\bin\qmlcachegen.exe --resource=D:/felgoProjects/TabTab_final/resources.qrc -o qml_helper_SectionContent_qml.cpp ..\TabTab_final\qml\helper\SectionContent.qml
    No resource path for file: ..\TabTab_final\qml\helper\SectionDescription.qml
    make: *** [qml_helper_SectionDescription_qml.cpp] Error 1
    make: *** Waiting for unfinished jobs....
    No resource path for file: ..\TabTab_final\qml\helper\PluginListItem.qml
    No resource path for file: ..\TabTab_final\qml\helper\SectionContent.qml
    make: *** [qml_helper_PluginListItem_qml.cpp] Error 1
    make: *** [qml_helper_SectionContent_qml.cpp] Error 1
    18:20:13: The process "D:\android-ndk-r19c-windows-x86_64\android-ndk-r19c\prebuilt\windows-x86_64\bin\make.exe" exited with code 2.
    Error while building/deploying project TabTab_final (kit: Android for armeabi-v7a (Clang Qt 5.13.2 for Android ARMv7))
    When executing step "Make"
    18:20:13: Elapsed time: ٠:٠٠:٠٢.
    

    I did all the requirements for publishing on the .pro file and main.cpp, what can I do to fix the issue?



  • @newbiSoso said in Can't perform android app release:

    No resource path for file: ..\TabTab_final\qml\helper\SectionDescription.qml
    make: *** [qml_helper_SectionDescription_qml.cpp] Error 1
    make: *** Waiting for unfinished jobs....
    No resource path for file: ..\TabTab_final\qml\helper\PluginListItem.qml
    No resource path for file: ..\TabTab_final\qml\helper\SectionContent.qml
    make: *** [qml_helper_PluginListItem_qml.cpp] Error 1
    make: *** [qml_helper_SectionContent_qml.cpp] Error 1

    Please double check what you added to your resource file...



  • @Pablo-J-Rogina

    True, I add them later and the build was successful, but I only get the debug build not the release one, I can’t upload it to google play.

    Console output after I tried cleaning the project:

    14:13:04: Running steps for project TabTab_final...
    14:13:04: Starting: "D:\android-ndk-r19c-windows-x86_64\android-ndk-r19c\prebuilt\windows-x86_64\bin\make.exe" clean -j4
    del qrc_resources_qmlcache.cpp qrc_resources_user.cpp
    del qml_Main_qml.cpp qml_PluginMainItem_qml.cpp qml_helper_SectionDescription_qml.cpp qml_helper_PluginListItem_qml.cpp qml_helper_SectionContent_qml.cpp qml_helper_SectionHeader_qml.cpp qml_helper_Constants_qml.cpp qml_pages_AdMobPage_qml.cpp
    del qmlcache_loader.cpp
    del moc_predefs.h
    Could Not Find D:\felgoProjects\build-TabTab_final-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\moc_predefs.h
    del main.obj felgoProjects\build-TabTab_final-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\qrc_resources_qmlcache.obj felgoProjects\build-TabTab_final-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\qrc_resources_user.obj felgoProjects\build-TabTab_final-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\qml_Main_qml.obj felgoProjects\build-TabTab_final-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\qml_PluginMainItem_qml.obj felgoProjects\build-TabTab_final-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\qml_helper_SectionDescription_qml.obj felgoProjects\build-TabTab_final-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\qml_helper_PluginListItem_qml.obj felgoProjects\build-TabTab_final-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\qml_helper_SectionContent_qml.obj felgoProjects\build-TabTab_final-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\qml_helper_SectionHeader_qml.obj felgoProjects\build-TabTab_final-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\qml_helper_Constants_qml.obj felgoProjects\build-TabTab_final-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\qml_pages_AdMobPage_qml.obj felgoProjects\build-TabTab_final-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\qmlcache_loader.obj
    del *~ core *.core
    Could Not Find D:\felgoProjects\build-TabTab_final-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release\*~
    14:13:07: The process "D:\android-ndk-r19c-windows-x86_64\android-ndk-r19c\prebuilt\windows-x86_64\bin\make.exe" exited normally.
    14:13:07: Elapsed time: ٠:٠٠:٠٣.
    

    Output console after trying to perform a release build:

    14:14:29: Running steps for project TabTab_final...
    14:14:29: Starting: "E:\felgo\Felgo\android_armv7\bin\qmake.exe" D:\felgoProjects\TabTab_final\TabTab_final.pro -spec android-clang "CONFIG+=qtquickcompiler"
    QDir::mkpath: Empty or null file name
    WARNING: Cannot create directory ''
    QDir::mkpath: Empty or null file name
    WARNING: Cannot create directory ''
    14:14:33: The process "E:\felgo\Felgo\android_armv7\bin\qmake.exe" exited normally.
    14:14:34: Starting: "D:\android-ndk-r19c-windows-x86_64\android-ndk-r19c\prebuilt\windows-x86_64\bin\make.exe" -f D:/felgoProjects/build-TabTab_final-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release/Makefile qmake_all
    make: Nothing to be done for `qmake_all'.
    14:14:36: The process "D:\android-ndk-r19c-windows-x86_64\android-ndk-r19c\prebuilt\windows-x86_64\bin\make.exe" exited normally.
    14:14:36: Starting: "D:\android-ndk-r19c-windows-x86_64\android-ndk-r19c\prebuilt\windows-x86_64\bin\make.exe" -j4
    
    ///Some other stuff
    
    BUILD SUCCESSFUL in 1m 4s
    28 actionable tasks: 28 up-to-date
    Android package built successfully in 132.629 ms.
      -- File: D:/felgoProjects/build-TabTab_final-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release/android-build//build/outputs/apk/debug/android-build-debug.apk
    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
    14:17:12: The process "E:\felgo\Felgo\android_armv7\bin\androiddeployqt.exe" exited normally.
    14:17:12: Elapsed time: ٠:٠٢:٤٣.
    

    I changed the .pro and config.json files to perform publishing, are there other steps I forgot?



  • @newbiSoso said in Can't perform android app release:

    BUILD SUCCESSFUL in 1m 4s
    28 actionable tasks: 28 up-to-date
    Android package built successfully in 132.629 ms.

    So what's the issue?
    It looks like this build finished properly (you can ignore those warnings regarding QML imports).



  • @Pablo-J-Rogina Build only results in debug version not the release one.


  • Moderators

    @newbiSoso
    no, its a release version.

    It has debug in its name because you probably forgot to sign your apk.



  • @newbiSoso said in Can't perform android app release:

    Build only results in debug version not the release one

    Really? see below:

    Starting: "D:\android-ndk-r19c-windows-x86_64\android-ndk-r19c\prebuilt\windows-x86_64\bin\make.exe" -f D:/felgoProjects/build-TabTab_final-Android_for_armeabi_v7a_Clang_Qt_5_13_2_for_Android_ARMv7-Release/Makefile

    it looks like qmake from Felgo framework is using Makefile from Release folder...


Log in to reply