flutter-unity-view-widget icon indicating copy to clipboard operation
flutter-unity-view-widget copied to clipboard

[ARCore Extensions][Geospatial creator] Duplicate classes

Open RevisOTO opened this issue 2 years ago • 2 comments

When I build the application in Unity and try to run the project in Flutter, too many duplicate class errors appear.

Steps to reproduce the behavior:

  1. Set-Up flutter-unity-view-widget in Flutter and Unity
  2. Install Cesium and ARCore Extensions in Unity
  3. Enable Geospatial and Geospatial creator in Unity Edit > Project Settings > ARCore Extensions > Geospatial and Geospatial creator CheckBox
  4. Export Android Build to Flutter
  5. Create a Unity Widget and run.
  6. The error will appear.

image

  • OS: Windows 10

  • Version 2021.3.23f1

  • Device: Samsung A53

  • OS: Android

  • Version 13

RevisOTO avatar Feb 21 '24 17:02 RevisOTO

There is a work around go to android/unityLibrary/build.gradle and comment out the duplicated library

dependencies { 

     //implementation(name: 'androidx.core.core-1.2.0', ext:'aar')
}

AhmadAmr avatar Feb 29 '24 19:02 AhmadAmr

did they solve it?

carlosherrerosjerez avatar Apr 16 '24 04:04 carlosherrerosjerez