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

Update AR Foundation instructions and fix missing XRmanifest.androidlib

Open timbotimbo opened this issue 2 years ago โ€ข 1 comments

Description

If your Unity project uses XR Plugin management 4.4 or higher, you get an error when building on android. https://github.com/juicycleff/flutter-unity-view-widget/issues/844

Project with path 'xrmanifest.androidlib' could not be found in project ':unityLibrary

You need to add an include to settings.gradle to handle this.

Changes

  • Document including xrmanifest.androidlib in the readme.
include ":unityLibrary:xrmanifest.androidlib"
  • Update outdated AR Foundation setup in the readme. You don't need to manually include all the .aar files in gradle anymore.
  • Android export now tries to automatically include xrmanifest.androidlib in settings.gradle

Type of Change

  • [ ] โœจ New feature (non-breaking change which adds functionality)
  • [x] ๐Ÿ› ๏ธ Bug fix (non-breaking change which fixes an issue)
  • [ ] โŒ Breaking change (fix or feature that would cause existing functionality to change)
  • [ ] ๐Ÿงน Code refactor
  • [ ] โœ… Build configuration change
  • [x] ๐Ÿ“ Documentation
  • [ ] ๐Ÿ—‘๏ธ Chore

This PR is somewhat related to https://github.com/juicycleff/flutter-unity-view-widget/pull/908, as ARFoundation will crash on recent unity versions without that fix.

timbotimbo avatar Jan 03 '24 16:01 timbotimbo

@juicycleff please merge this, we need updates for this current version of the plugin

CristovoXDGM avatar Jan 31 '24 11:01 CristovoXDGM

Replaced with #960 to also update vuforia.

timbotimbo avatar Jun 23 '24 20:06 timbotimbo