mattermoran / map_launcher

Flutter plugin for launching maps
MIT License
259 stars 116 forks source link

Android build started to fail #126

Closed Zalexei closed 1 year ago

Zalexei commented 1 year ago

Worked before. Today with new build started to show this error in console: flutter/.pub-cache/hosted/pub.dartlang.org/map_launcher-2.2.3/android/src/main/kotlin/com/alexmiller/map_launcher/MapLauncherPlugin.kt: (14, 20): Redeclaration: MapType flutter/.pub-cache/hosted/pub.dartlang.org/map_launcher-2.2.3/android/src/main/kotlin/com/alexmiller/map_launcher/MapLauncherPlugin.kt: (16, 15): Redeclaration: MapModel flutter/.pub-cache/hosted/pub.dartlang.org/map_launcher-2.2.3/android/src/main/kotlin/com/alexmiller/map_launcher/MapLauncherPlugin.kt: (22, 7): Redeclaration: MapLauncherPlugin flutter/.pub-cache/hosted/pub.dartlang.org/map_launcher-2.3.0+1/android/src/main/kotlin/com/alexmiller/map_launcher/MapLauncherPlugin.kt: (14, 20): Redeclaration: MapType flutter/.pub-cache/hosted/pub.dartlang.org/map_launcher-2.3.0+1/android/src/main/kotlin/com/alexmiller/map_launcher/MapLauncherPlugin.kt: (16, 15): Redeclaration: MapModel flutter/.pub-cache/hosted/pub.dartlang.org/map_launcher-2.3.0+1/android/src/main/kotlin/com/alexmiller/map_launcher/MapLauncherPlugin.kt: (16, 37): Cannot access 'MapType': it is private in file flutter/.pub-cache/hosted/pub.dartlang.org/map_launcher-2.3.0+1/android/src/main/kotlin/com/alexmiller/map_launcher/MapLauncherPlugin.kt: (18, 43): Cannot access 'MapType': it is private in file flutter/.pub-cache/hosted/pub.dartlang.org/map_launcher-2.3.0+1/android/src/main/kotlin/com/alexmiller/map_launcher/MapLauncherPlugin.kt: (22, 7): Redeclaration: MapLauncherPlugin flutter/.pub-cache/hosted/pub.dartlang.org/map_launcher-2.3.0+1/android/src/main/kotlin/com/alexmiller/map_launcher/MapLauncherPlugin.kt: (36, 31): Cannot access 'channel': it is private in 'MapLauncherPlugin' flutter/.pub-cache/hosted/pub.dartlang.org/map_launcher-2.3.0+1/android/src/main/kotlin/com/alexmiller/map_launcher/MapLauncherPlugin.kt: (37, 31): Cannot access 'context': it is private in 'MapLauncherPlugin'

mattermoran commented 1 year ago

Seems like just the cache issue. Please try running flutter clean and then flutter pub get and build again

mattermoran commented 1 year ago

Probably same as https://github.com/mattermoran/map_launcher/issues/109

Zalexei commented 1 year ago

Thanks. Cleaning solved the issue.