Kanzi 3.6.13 migration guide¶
Use this migration guide to update Kanzi applications from Kanzi 3.6.12 to 3.6.13.
Migrating Kanzi applications to use Android Studio 4.1.0 and Gradle 6.5¶
To migrate Kanzi applications to use Android Studio 4.1.0 and Gradle 6.5:
In Android Studio in the
android_gradle/app/build.gradle
file replace:externalNativeBuild { cmake { path "CMakeLists.txt" version "3.6.0+" } }
with
externalNativeBuild { cmake { path "CMakeLists.txt" version "3.6.0" } }
In the
android_gradle/build.gradle
file replace:dependencies { classpath 'com.android.tools.build:gradle:<android-studio-version>' classpath 'com.rightware.gradle:kanzi:<gradle-plugin-version>' }
with
dependencies { classpath 'com.android.tools.build:gradle:4.1.0' classpath 'com.rightware.gradle:kanzi:0.6.1' }
In the
android_gradle/gradle/wrapper/gradle-wrapper.properties
file replace:distributionUrl=https\://services.gradle.org/distributions/gradle-<version>-bin.zip
with
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-bin.zip
In the
android_gradle/gradle.properties
file replace:org.gradle.jvmargs=-Xmx<size>m
with
org.gradle.jvmargs=-Xmx4608m
To update Gradle in your application, either:
In Android Studio select Gradle > Task > build setup > Wrapper.
On the command line run:
./gradlew wrapper