liodali / osm_flutter

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

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

Open SimpleSamson opened 1 year ago

SimpleSamson commented 1 year 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 1 year ago

add mutlidex to you app gradle

SimpleSamson commented 12 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