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

The SDK directory '...' does not exist.



  • Qt 5.7 / Windows 10
    Android SDK C:\Android\android-sdk-25.2.5
    Android NDK C:\Android\android-ndk-r10e

    Once upon a time, I could build my code, and generate my APK.
    Then, I decided that there was some redundancy in the paths of my SDK and NDK. D'oh! I renamed these directories appropriately, and didn't think much more about it.

    Now, having rearranged mention of SDKs and NDKs in Qt Creator, including Kits, Compilers, Debuggers, etc., and Devices such that "Android settings are OK. (SDK Version: 25.2.5, NDK Version: 10.4.0)", the result is that my code still compiles, yay, but

    FAILURE: Build failed with an exception.
    
    * What went wrong:
    A problem occurred configuring root project 'android-build'.
    > The SDK directory 'C:\project\build-project-Android_for_armeabi_v7a_GCC_4_9_Qt_5_7_1_android_armv7-Debug\android-build\C:Androidandroid-sdk-25.2.5' does not exist.
    
    * Try:
    Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output.
    
    BUILD FAILED
    

    Seems like androiddeployqt.exe is generating a path by catenating the shadow build directory and the SDK path. Of course, the SDK is not there!

    Where do I search to fix this?

    Kevin.

    --


Log in to reply