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

Forums

OverviewFelgo 3 Support (Qt 5) › Demo for C++ and QML integration

Tagged: 

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #22679

    Abe

    I have to implement the integration of my app into Android with JNI. The documentation of Felgo mentions a demo application:

    The demo is also available with the Felgo SDK: <i><Path to Felgo>/Examples/Felgo/appdemos/cpp-qml-integration</i>

    Unfortunately I get a build error:

    FAILURE: Build failed with an exception.
    
    * Where:
    Build file '/Users/abe/Felgo/Examples/Felgo/appdemos/build-Cpp-qml-integration-Android_f_r_arm64_v8a_Clang_Qt_5_13_2_for_Android_ARM64_v8a-Debug/android-build/build.gradle' line: 19
    
    * What went wrong:
    A problem occurred evaluating root project 'android-build'.
    > Failed to apply plugin [id 'com.android.application']
       > Minimum supported Gradle version is 3.3. Current version is 2.14.1. If using the gradle wrapper, try editing the distributionUrl in /Users/joerg/Felgo/Examples/Felgo/appdemos/build-Cpp-qml-integration-Android_f_r_arm64_v8a_Clang_Qt_5_13_2_for_Android_ARM64_v8a-Debug/android-build/gradle/wrapper/gradle-wrapper.properties to gradle-3.3-all.zip

    How can I define a newer grandle version?

    I tried to modify the build.grandle file based on a new project from a template:

    buildscript {
        repositories {
            maven { url 'https://maven.google.com' }
            jcenter()
        }
    
        dependencies {
            classpath 'com.android.tools.build:gradle:3.3.1'
        }
    }
    
    allprojects {
        repositories {
            maven { url 'https://maven.google.com' }
            jcenter()
            maven { url 'https://install.felgo.com/maven/' }
        }
    }
    
    apply plugin: 'com.android.application'
    
    dependencies {
        implementation fileTree(dir: 'libs', include: ['*.jar'])
    
        implementation "com.android.support:support-core-utils:28.0.0"
        implementation "com.android.support:appcompat-v7:28.0.0"
    
    }

    How I get the following error:

    FAILURE: Build failed with an exception.
    
    * Where:
    Build file '/Users/abe/Felgo/Examples/Felgo/appdemos/build-Cpp-qml-integration-Android_f_r_arm64_v8a_Clang_Qt_5_13_2_for_Android_ARM64_v8a-Debug/android-build/build.gradle' line: 20
    
    * What went wrong:
    A problem occurred evaluating root project 'android-build'.
    > Failed to apply plugin [id 'com.android.application']
       > Minimum supported Gradle version is 4.10.1. Current version is 2.14.1. If using the gradle wrapper, try editing the distributionUrl in /Users/joerg/Felgo/Examples/Felgo/appdemos/build-Cpp-qml-integration-Android_f_r_arm64_v8a_Clang_Qt_5_13_2_for_Android_ARM64_v8a-Debug/android-build/gradle/wrapper/gradle-wrapper.properties to gradle-4.10.1-all.zip

     

     

    #22681

    Alex
    Felgo Team

    Hi,

    you can change the version in the wrapper file for this example at: <Path to your installation>/Examples/Felgo/appdemos/cpp-qml-integration/android/gradle/wrapper

    Cheers,
    Alex

    #22783

    Abe

    Unfortunately this leads to the next error:

    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: mips64el-linux-android

     

    I have chosen the Nexus 5X simulator for the deployment target. Usually the simulator works quite well to check my development.

     

    #22793

    Alex
    Felgo Team

    Please check if all the used version match the versions from a new template project.

    Best,
    Alex

    #22856

    Abe

    Thanks for your reply. Which version of which setting respectively definition do you mean? Do you suggest to create a new project from the template and compare some settings? Which setting? Thanks for your assistance.

    #22878

    Alex
    Felgo Team

    Hi Abe,

    yes please create a new template and inspect AndroidManifest.xml, build.gradle and your *.pro file.

    Best,
    Alex

    #22896

    Abe
Viewing 7 posts - 1 through 7 (of 7 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