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