Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Problem with androiddeployqt and Qt5.14.2



  • The applications can be used and deployed when linked to Qt 5.12.7 and previous versions.

    Warning: QML import could not be resolved in any of the import paths: Local
    The JavaCompile.setDependencyCacheDir() method has been deprecated and is scheduled to be removed in Gradle 4.0.
    
    FAILURE: Build failed with an exception.
    
    * What went wrong:
    A problem occurred configuring root project 'android-build'.
    > No toolchains found in the NDK toolchains folder for ABI with prefix: mipsel-linux-android
    
    * 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: 5.287 secs
    Building the android package failed!
      -- For more information, run this command with --verbose.
    18:36:40: The process "C:\Qt\5.14.2\android\bin\androiddeployqt.exe" exited with code 14.
    Error while building/deploying project inQmlTimes (kit: Android for armeabi-v7a,arm64-v8a,x86,x86_64 (Clang Qt 5.14.2 for Android))
    When executing step "Build Android APK"
    

    Anyone can shed some light on how to handle this issue?


  • Moderators

    1. Remove your Android template dir (if present). Backup if necessary.
    2. Regenerate templates (Qt Creator->Project->Build Android APK->Create template) and then fix your AndroidManifest.xml.
    3. Run a clean build, it should work.

    mipsel-linux-android

    If you really need mipsel... I don't think it's supported anymore in Qt 5.14.2. But you can try building Qt from source and enable this arch.



  • @sierdzio

    Great. Yes, it did the trick.

    @sierdzio said in Problem with androiddeployqt and Qt5.14.2:

    mipsel-linux-android

    If you really need mipsel... I don't think it's supported anymore in Qt 5.14.2. But you can try building Qt from source and enable this arch.

    Must a left over from versions before. It is not required.


Log in to reply