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 504 forks source link

Build failed with an exception , AAPT: error: resource style/UnityThemeSelector (aka com.xraph.plugin.flutter_unity_widget_example:style/UnityThemeSelector) not found. #942

Closed stableAhmad closed 1 week ago

stableAhmad commented 2 months ago

I am new to flutter and Iam struggling to get this project running for testing. I cloned this repo, opened unity,changed platform to Android and exported as an android release. then opened the example project in Android studio , added the unity-classes.jar as a library and everything as described in the readme file. then when i build i find a problem inside AndroidMainfest.xml, its complaining about not finding UnityThemeSelector

AAPT: error: resource style/UnityThemeSelector (aka com.xraph.plugin.flutter_unity_widget_example:style/UnityThemeSelector) not found.

avcavc

timbotimbo commented 2 months ago

Check this PR, you need to adjust a couple of lines in the unity script https://github.com/juicycleff/flutter-unity-view-widget/pull/894