Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business

Forums

OverviewFelgo 3 Support (Qt 5) › Trying to compile android yields this error

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #21577

    Ginzo Milani

     

    :compileDebugAidl FAILED

    FAILURE: Build failed with an exception.

    * What went wrong:

    Execution failed for task ‘:compileDebugAidl’.

    > java.lang.RuntimeException: com.android.ide.common.process.ProcessException: Error while executing process C:\Users\Monckey100\AppData\Local\Android\Sdk\build-tools\29.0.0-rc2\aidl.exe with arguments {-pC:\Users\Monckey100\AppData\Local\Android\Sdk\platforms\android-18\framework.aidl -oH:\Users\Monckey100\Documents\build-BlackBox-Android_for_armeabi_v7a_GCC_4_9_Qt_5_11_1_Android_armv7_Felgo_5d7316-Release\android-build\build\generated\source\aidl\debug -IF:\Felgo\Felgo\android_armv7\src\android\java\src -IH:\Users\Monckey100\Documents\build-BlackBox-Android_for_armeabi_v7a_GCC_4_9_Qt_5_11_1_Android_armv7_Felgo_5d7316-Release\android-build\src -IH:\Users\Monckey100\Documents\build-BlackBox-Android_for_armeabi_v7a_GCC_4_9_Qt_5_11_1_Android_armv7_Felgo_5d7316-Release\android-build\aidl -IH:\Users\Monckey100\Documents\build-BlackBox-Android_for_armeabi_v7a_GCC_4_9_Qt_5_11_1_Android_armv7_Felgo_5d7316-Release\android-build\src\debug\aidl -IC:\Users\Monckey100\.android\build-cache\a8b7c6f31359cee40f310c23b673158710ef67d1\output\aidl -IC:\Users\Monckey100\.android\build-cache\d416a14af5104b66fc43531b7308c6530687ca0a\output\aidl -IC:\Users\Monckey100\.android\build-cache\6975c749f49aee432a9fdd291900cb5940dcb023\output\aidl -IC:\Users\Monckey100\.android\build-cache\97c2428d17be0ca10f8c49f35a9ef025e73c03f7\output\aidl -IC:\Users\Monckey100\.android\build-cache\c12deef1f684ad0f9e6aef8e068bf5f49df3aa10\output\aidl -IC:\Users\Monckey100\.android\build-cache\4ff737a8adacae21da93935befad73a5bb641884\output\aidl -IC:\Users\Monckey100\.android\build-cache\ec9c67cf05ac8b14c9e56e15de964117b7eb0e82\output\aidl -IC:\Users\Monckey100\.android\build-cache\10299d8e337e06f8c1322e819e73bc0e75f40b35\output\aidl -IC:\Users\Monckey100\.android\build-cache\b7a792474612f73ba170074c127107578ce1fe09\output\aidl -IC:\Users\Monckey100\.android\build-cache\f156b312311fd5a9d0ba7ecddd43f7141cc1e76e\output\aidl -IC:\Users\Monckey100\.android\build-cache\5acef5c30d3b12ba9164468221e80f167b5e3016\output\aidl -IC:\Users\Monckey100\.android\build-cache\6ced5c4d297925961d7d7f27918fcc8ed1e5edbd\output\aidl -IC:\Users\Monckey100\.android\build-cache\f6bf5b14cc7b44ec0e10f3f3981729d11be92532\output\aidl -IC:\Users\Monckey100\.android\build-cache\c197a6d0eb7a87a5519f5d356b2721885f47bc8b\output\aidl -IC:\Users\Monckey100\.android\build-cache\f46c33c621fe480420f4df1f9f79fc1614631fd8\output\aidl -IC:\Users\Monckey100\.android\build-cache\15bc2890ffc978907d22aa9982b5dc7b3719911d\output\aidl -IC:\Users\Monckey100\.android\build-cache\2345d110a1a423f38f4c7908100c290e38b48039\output\aidl -IC:\Users\Monckey100\.android\build-cache\0429850eae6c1a0bda60b027d8de47430c9ef72f\output\aidl -IC:\Users\Monckey100\.android\build-cache\ef3bc05cc24cb3b5be0faeecbf2ef22b6ed47329\output\aidl -IC:\Users\Monckey100\.android\build-cache\824e936ddf9a38825fc126a55642e0b8220897b9\output\aidl -dC:\Users\MONCKE~1\AppData\Local\Temp\aidl1673710116685293563.d F:\Felgo\Felgo\android_armv7\src\android\java\src\org\kde\necessitas\ministro\IMinistro.aidl}

    * Try:

    Run with –stacktrace option to get the stack trace. Run with –info or –debug option to get more log output.

    Tried to compile with playground app and got the same error. I am using android-ndk-r14 and I’ve tried reinstalling completely to no avail. I think something about android studio and felgo is out of “sync”. I am not sure what android SDK version I am supposed to be using so I just have the most recent installed.

     

    my SDK looks like this

    https://imgur.com/2wI0MsW

     

    https://imgur.com/58qOpoX

     

    https://imgur.com/g6BHnnA

     

    Now I cannot compile to Android at all.

     

    #21588

    Ginzo Milani

    I know someone will one day see this and it may become a more common problem too. Maybe not, but to you future programmers, I will help you.

     

    This error is caused by using a newer build tool SDK, even after uninstalling it I found out the compiler would reinstall it and try again. So I scoured the internet looking for solutions.. Here are the variables I found

    sdkBuildToolsRevision
    BUILDTOOLS_REVISION
    buildToolsVersion
    androidBuildToolsVersion

     

    Go into your *.pro and look for your

    android {
        ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android
        OTHER_FILES += android/AndroidManifest.xml       android/build.gradle
    }

     

    tag, then add this

    BUILDTOOLS_REVISION = 28.0.3

    Change 28.0.3 to whatever tools you originally had installed that worked for you. you need NDK-14 and 28.0.3, this may change in the future but the key is that certain NDKs need certain build tools. I wasn’t sure how to change the gradle.properties which the compiler referenced but this works just fine.

     

Viewing 2 posts - 1 through 2 (of 2 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded