map_launcher 1.0.0 fails to build on Flutter 1.22.4 with several error messages
e: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\map_launcher-0.4.5\android\src\main\kotlin\com\alexmiller\map_launcher\MapLauncherPlugin.kt: (14, 20): Redeclaration: MapType
e: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\map_launcher-0.4.5\android\src\main\kotlin\com\alexmiller\map_launcher\MapLauncherPlugin.kt: (16, 15): Redeclaration: MapModel
e: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\map_launcher-0.4.5\android\src\main\kotlin\com\alexmiller\map_launcher\MapLauncherPlugin.kt: (22, 7): Redeclaration: MapLauncherPlugin
e: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\map_launcher-1.0.0\android\src\main\kotlin\com\alexmiller\map_launcher\MapLauncherPlugin.kt: (14, 20): Redeclaration: MapType
e: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\map_launcher-1.0.0\android\src\main\kotlin\com\alexmiller\map_launcher\MapLauncherPlugin.kt: (16, 15): Redeclaration: MapModel
e: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\map_launcher-1.0.0\android\src\main\kotlin\com\alexmiller\map_launcher\MapLauncherPlugin.kt: (16, 37): Cannot access 'MapType': it is private in file
e: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\map_launcher-1.0.0\android\src\main\kotlin\com\alexmiller\map_launcher\MapLauncherPlugin.kt: (18, 43): Cannot access 'MapType': it is private in file
e: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\map_launcher-1.0.0\android\src\main\kotlin\com\alexmiller\map_launcher\MapLauncherPlugin.kt: (22, 7): Redeclaration: MapLauncherPlugin
e: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\map_launcher-1.0.0\android\src\main\kotlin\com\alexmiller\map_launcher\MapLauncherPlugin.kt: (35, 55): No value passed for parameter 'context'
e: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\map_launcher-1.0.0\android\src\main\kotlin\com\alexmiller\map_launcher\MapLauncherPlugin.kt: (35, 55): No value passed for parameter 'activity'
e: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\map_launcher-1.0.0\android\src\main\kotlin\com\alexmiller\map_launcher\MapLauncherPlugin.kt: (35, 55): No value passed for parameter 'pm'
e: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\map_launcher-1.0.0\android\src\main\kotlin\com\alexmiller\map_launcher\MapLauncherPlugin.kt: (36, 31): Unresolved reference: channel
e: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\map_launcher-1.0.0\android\src\main\kotlin\com\alexmiller\map_launcher\MapLauncherPlugin.kt: (37, 13): Val cannot be reassigned
e: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\map_launcher-1.0.0\android\src\main\kotlin\com\alexmiller\map_launcher\MapLauncherPlugin.kt: (37, 31): Cannot access 'context': it is private in 'MapLauncherPlugin'
e: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\map_launcher-1.0.0\android\src\main\kotlin\com\alexmiller\map_launcher\MapLauncherPlugin.kt: (38, 31): Unresolved reference: channel
e: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\map_launcher-1.0.0\android\src\main\kotlin\com\alexmiller\map_launcher\MapLauncherPlugin.kt: (43, 13): Cannot access 'MapModel': it is private in file
e: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\map_launcher-1.0.0\android\src\main\kotlin\com\alexmiller\map_launcher\MapLauncherPlugin.kt: (43, 22): Cannot access 'MapType': it is private in file
e: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\map_launcher-1.0.0\android\src\main\kotlin\com\alexmiller\map_launcher\MapLauncherPlugin.kt: (43, 30): Cannot access 'MapType': it is private in file
e: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\map_launcher-1.0.0\android\src\main\kotlin\com\alexmiller\map_launcher\MapLauncherPlugin.kt: (44, 13): Cannot access 'MapModel': it is private in file
e: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\map_launcher-1.0.0\android\src\main\kotlin\com\alexmiller\map_launcher\MapLauncherPlugin.kt: (44, 22): Cannot access 'MapType': it is private in file
e: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\map_launcher-1.0.0\android\src\main\kotlin\com\alexmiller\map_launcher\MapLauncherPlugin.kt: (44, 30): Unresolved reference: googleGo
e: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\map_launcher-1.0.0\android\src\main\kotlin\com\alexmiller\map_launcher\MapLauncherPlugin.kt: (45, 13): Cannot access 'MapModel': it is private in file
e: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\map_launcher-1.0.0\android\src\main\kotlin\com\alexmiller\map_launcher\MapLauncherPlugin.kt: (45, 22): Cannot access 'MapType': it is private in file
e: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\map_launcher-1.0.0\android\src\main\kotlin\com\alexmiller\map_launcher\MapLauncherPlugin.kt: (45, 30): Cannot access 'MapType': it is private in file
e: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\map_launcher-1.0.0\android\src\main\kotlin\com\alexmiller\map_launcher\MapLauncherPlugin.kt: (46, 13): Cannot access 'MapModel': it is private in file
e: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\map_launcher-1.0.0\android\src\main\kotlin\com\alexmiller\map_launcher\MapLauncherPlugin.kt: (46, 22): Cannot access 'MapType': it is private in file
e: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\map_launcher-1.0.0\android\src\main\kotlin\com\alexmiller\map_launcher\MapLauncherPlugin.kt: (46, 30): Cannot access 'MapType': it is private in file
e: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\map_launcher-1.0.0\android\src\main\kotlin\com\alexmiller\map_launcher\MapLauncherPlugin.kt: (47, 13): Cannot access 'MapModel': it is private in file
e: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\map_launcher-1.0.0\android\src\main\kotlin\com\alexmiller\map_launcher\MapLauncherPlugin.kt: (47, 22): Cannot access 'MapType': it is private in file
e: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\map_launcher-1.0.0\android\src\main\kotlin\com\alexmiller\map_launcher\MapLauncherPlugin.kt: (47, 30): Cannot access 'MapType': it is private in file
e: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\map_launcher-1.0.0\android\src\main\kotlin\com\alexmiller\map_launcher\MapLauncherPlugin.kt: (48, 13): Cannot access 'MapModel': it is private in file
e: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\map_launcher-1.0.0\android\src\main\kotlin\com\alexmiller\map_launcher\MapLauncherPlugin.kt: (48, 22): Cannot access 'MapType': it is private in file
e: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\map_launcher-1.0.0\android\src\main\kotlin\com\alexmiller\map_launcher\MapLauncherPlugin.kt: (48, 30): Cannot access 'MapType': it is private in file
e: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\map_launcher-1.0.0\android\src\main\kotlin\com\alexmiller\map_launcher\MapLauncherPlugin.kt: (49, 13): Cannot access 'MapModel': it is private in file
e: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\map_launcher-1.0.0\android\src\main\kotlin\com\alexmiller\map_launcher\MapLauncherPlugin.kt: (49, 22): Cannot access 'MapType': it is private in file
e: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\map_launcher-1.0.0\android\src\main\kotlin\com\alexmiller\map_launcher\MapLauncherPlugin.kt: (49, 30): Cannot access 'MapType': it is private in file
e: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\map_launcher-1.0.0\android\src\main\kotlin\com\alexmiller\map_launcher\MapLauncherPlugin.kt: (50, 13): Cannot access 'MapModel': it is private in file
e: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\map_launcher-1.0.0\android\src\main\kotlin\com\alexmiller\map_launcher\MapLauncherPlugin.kt: (50, 22): Cannot access 'MapType': it is private in file
e: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\map_launcher-1.0.0\android\src\main\kotlin\com\alexmiller\map_launcher\MapLauncherPlugin.kt: (50, 30): Unresolved reference: citymapper
e: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\map_launcher-1.0.0\android\src\main\kotlin\com\alexmiller\map_launcher\MapLauncherPlugin.kt: (51, 13): Cannot access 'MapModel': it is private in file
e: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\map_launcher-1.0.0\android\src\main\kotlin\com\alexmiller\map_launcher\MapLauncherPlugin.kt: (51, 22): Cannot access 'MapType': it is private in file
e: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\map_launcher-1.0.0\android\src\main\kotlin\com\alexmiller\map_launcher\MapLauncherPlugin.kt: (51, 30): Unresolved reference: mapswithme
e: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\map_launcher-1.0.0\android\src\main\kotlin\com\alexmiller\map_launcher\MapLauncherPlugin.kt: (52, 13): Cannot access 'MapModel': it is private in file
e: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\map_launcher-1.0.0\android\src\main\kotlin\com\alexmiller\map_launcher\MapLauncherPlugin.kt: (52, 22): Cannot access 'MapType': it is private in file
e: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\map_launcher-1.0.0\android\src\main\kotlin\com\alexmiller\map_launcher\MapLauncherPlugin.kt: (52, 30): Unresolved reference: osmand
e: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\map_launcher-1.0.0\android\src\main\kotlin\com\alexmiller\map_launcher\MapLauncherPlugin.kt: (53, 13): Cannot access 'MapModel': it is private in file
e: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\map_launcher-1.0.0\android\src\main\kotlin\com\alexmiller\map_launcher\MapLauncherPlugin.kt: (53, 22): Cannot access 'MapType': it is private in file
e: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\map_launcher-1.0.0\android\src\main\kotlin\com\alexmiller\map_launcher\MapLauncherPlugin.kt: (53, 30): Unresolved reference: doubleGis
e: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\map_launcher-1.0.0\android\src\main\kotlin\com\alexmiller\map_launcher\MapLauncherPlugin.kt: (56, 42): Cannot access 'MapModel': it is private in file
e: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\map_launcher-1.0.0\android\src\main\kotlin\com\alexmiller\map_launcher\MapLauncherPlugin.kt: (58, 87): Cannot access 'MapModel': it is private in file
e: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\map_launcher-1.0.0\android\src\main\kotlin\com\alexmiller\map_launcher\MapLauncherPlugin.kt: (64, 47): Cannot access 'MapModel': it is private in file
e: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\map_launcher-1.0.0\android\src\main\kotlin\com\alexmiller\map_launcher\MapLauncherPlugin.kt: (64, 55): Cannot access 'MapType': it is private in file
e: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\map_launcher-1.0.0\android\src\main\kotlin\com\alexmiller\map_launcher\MapLauncherPlugin.kt: (77, 36): Cannot access 'MapType': it is private in file
e: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\map_launcher-1.0.0\android\src\main\kotlin\com\alexmiller\map_launcher\MapLauncherPlugin.kt: (81, 47): Cannot access 'MapType': it is private in file
e: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\map_launcher-1.0.0\android\src\main\kotlin\com\alexmiller\map_launcher\MapLauncherPlugin.kt: (81, 51): Cannot access 'MapModel': it is private in file
e: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\map_launcher-1.0.0\android\src\main\kotlin\com\alexmiller\map_launcher\MapLauncherPlugin.kt: (81, 59): No method 'equals(Any?): Boolean' available
e: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\map_launcher-1.0.0\android\src\main\kotlin\com\alexmiller\map_launcher\MapLauncherPlugin.kt: (82, 17): Cannot access 'MapModel': it is private in file
e: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\map_launcher-1.0.0\android\src\main\kotlin\com\alexmiller\map_launcher\MapLauncherPlugin.kt: (82, 26): No method 'equals(Any?): Boolean' available
e: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\map_launcher-1.0.0\android\src\main\kotlin\com\alexmiller\map_launcher\MapLauncherPlugin.kt: (83, 44): Cannot access 'MapModel': it is private in file
e: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\map_launcher-1.0.0\android\src\main\kotlin\com\alexmiller\map_launcher\MapLauncherPlugin.kt: (95, 63): Cannot access 'MapModel': it is private in file
e: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\map_launcher-1.0.0\android\src\main\kotlin\com\alexmiller\map_launcher\MapLauncherPlugin.kt: (105, 31): Cannot access 'MapType': it is private in file
e: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\map_launcher-1.0.0\android\src\main\kotlin\com\alexmiller\map_launcher\MapLauncherPlugin.kt: (105, 39): Cannot access 'MapType': it is private in file
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':map_launcher:compileDebugKotlin'.
> Compilation error. See log for more details
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 1m 5s
Running Gradle task 'assembleDebug'...
Running Gradle task 'assembleDebug'... Done 68,3s
Exception: Gradle task assembleDebug failed with exit code 1
Hi @insinfo
Can you run flutter clean command and try again? It seems like you somehow have 2 different versions at the same time which is probably why you have that issue.
map_launcher 1.0.0 fails to build on Flutter 1.22.4 with several error messages
pubspec.yaml