Mobile-Telematics / telematicsSDK-demoapp-flutter-

Demo telematics app for Flutter. The application walks you through the telematics SDK integration. The technology is suitable for UBI (Usage-based insurance), shared mobility, transportation, safe driving, tracking, family trackers, drive-coach, and other driving mobile applications
https://www.damoov.com/telematics-sdk/
Other
21 stars 10 forks source link

Build Problem when running on Android #14

Closed Thangtran1100 closed 9 months ago

Thangtran1100 commented 10 months ago

Hi,

When I try to build the example app, I encountered an error that ext.kotlin_version need to be 1.5.20 or higher while it version is 1.4.31.

AhmedElhenidy commented 9 months ago

Hi @Thangtran1100 the example is very old ,here some tips to support latest flutter verion 1- in the app/build.gradle update the minSdkVersion to be 21 2- in the app/build.gradle update the telematics sdk from 2.2.2.31 to 2.2.257 dependencies { implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" implementation "com.telematicssdk:tracking:2.2.257" } 3- in the mainfest file add android:exported="true" inside the activity tag <activity android:name=".MainActivity" android:exported="true" 4- in the android/gradle/wrapper/gradle-wrapper.properties upgrade the gradle version to distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-all.zip 5- in the adroid/build.gradle update kotlin version to 1.8.10 and gradle version to 7.2.0

image
Thangtran1100 commented 9 months ago

Thank you so much!!!