How to deploy android build from qt 5.4 in macbook pro



  • Hello

    I had install qt 5.4 in my macbook pro using below link.

    http://mirrors.hust.edu.cn/qtproject/development_releases/qt/5.4/5.4.0-rc/qt-opensource-mac-x64-android-ios-5.4.0-rc.dmg

    i had configure all path of android jdk location, android sdk location, android ndk location and all path are correct.

    when i try to make build of any project( even try with android sample project given by qt) from qt creator. So after some time of build generation at last it give me this error.

    -- For more information, run this command with --verbose.
    17:11:13: The process "/Volumes/Kavita/Qt5.4.0/5.4/android_x86/bin/androiddeployqt" exited with code 14.
    Error while building/deploying project application (kit: Android for x86 (GCC 4.9, Qt 5.4.0))
    When executing step "Build Android APK"

    1. when i cant generate apk file from qt using above method. so i try to open gradle project in my android studio which gradle project folder generate by qt creator at the time of generating android build.

    so that gradle project also not run from android studio also.

    Can any body help me to solve above 2 issue who already face this type of issue in their mac and they already solved this issue.

    Thanks

    Kavita Mevada



  • @ingenioussofttech
    I fix this issue by changing the androidBuildToolsVersion in the gradle.properties and android-libYourApp.so-deployment-settings.json files under your App build directory. In my case it was
    (androidBuildToolsVersion=android4.4w) in gradle.properties file and (sdkBuildToolsRevision": "android4.4w") in android-libYourApp.so-deployment-settings.json, I changed to (androidBuildToolsVersion=21.1.2) and ("sdkBuildToolsRevision": "21.1.2")


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.