liodali / osm_flutter

OpenStreetMap plugin for flutter
https://pub.dev/packages/flutter_osm_plugin
MIT License
235 stars 97 forks source link

Error: .../infowindow.xml: Resource and asset merger: Layout file #481

Open SimpleSamson opened 11 months ago

SimpleSamson commented 11 months ago

Hi, Thank you very much for your plugin.

I keep getting this error when trying to run. [ +5 ms] ERROR: /.pub-cache/hosted/pub.dev/flutter_osm_plugin-0.70.2/android/src/main/res/layout/infowindow.xml: Resource and asset merger: Layout file /.pub-cache/hosted/pub.dev/flutter_osm_plugin-0.70.2/android/src/main/res/layout/infowindow.xml is not located in [/.pub-cache/hosted/pub.dev/flutter_osm_plugin-0.70.2/android/src/debug/res, /.pub-cache/hosted/pub.dev/flutter_osm_plugin-0.70.2/android/src/main/res] [ +19 ms] java.lang.IllegalStateException: Layout file

I have tried copying the file to those 2 destinations, obviously this did not work. I tried changing flutter versions, even going through the .xml file. I can't seem to figure out what the problem is...

liodali commented 11 months ago

add mutlidex to you app gradle

SimpleSamson commented 11 months ago

I have just tried that out including enabling jetifier and using androidx but I still get the exact same error.

liodali commented 11 months ago

which gradle version you're using did you try to upgrade it ? i will remove that xml layout because it part for window popup for marker