juicycleff / flutter-unity-view-widget

Embeddable unity game engine view for Flutter. Advance demo here https://github.com/juicycleff/flutter-unity-arkit-demo
BSD 3-Clause "New" or "Revised" License
2.09k stars 505 forks source link

Example cleanup & improve gradle compatibility. #893

Closed timbotimbo closed 1 week ago

timbotimbo commented 8 months ago

Description

This fixes some errors that you might get when running the current example project, mainly for Android.

Fixes

Android Compatibility:

Cleanup (all platforms):

Fixed errors

One or more plugins require a higher Android SDK version.
Fix this issue by adding the following to \example\android\app\build.gradle:
android {
  compileSdkVersion 33
  ...
}
┌─ Flutter Fix ───────────────────────────────────────────────────────────────────────────────────┐
│ [!] Your project's Gradle version is incompatible with the Java version that Flutter is using   │
│ for Gradle.       

According to the [flutter gradle migration guide](https://docs.flutter.dev/release/breaking-changes/android-java-gradle-migration-guide)
Gradle should be updated to 7.3-7.6.1

Type of Change