Problem when deploying app into android device



  • I encountered a problem when I click 'Build' button for the android project. The error message showed that ":-1: error: Cannot run target compiler 'C:\Android\android-ndk-r16b-windows-x86_64\android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/bin/arm-linux-androideabi-g++'. Maybe you forgot to setup the environment?"

    When I click 'Run' to the project, the error message showed that "Cannot find the androiddeploy Json file.
    Error while building/deploying project PhotoViewer (kit: Android for armeabi-v7a (GCC 4.9, Qt 5.9.3 for Android armv7))
    When executing step "Deploy to Android device"".

    I have spent a long time on fixing these error, but cannot find any solutions. Please help me.



  • You should use the NDK version 10e. That's the recommended one.


Log in to reply
 

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