Forums

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

Tagged: 

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

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

RSS feed for this thread

You must be logged in to reply to this topic.

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support