This repository was archived by the owner on Jun 25, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 189
This repository was archived by the owner on Jun 25, 2019. It is now read-only.
Errors when building the plugin #90
Copy link
Copy link
Closed
Description
Hello,
I have those issues when running flutter run in any project using the map_view plugin.
Launching lib/main.dart on Android SDK built for x86 in debug mode...
Initializing gradle... 0,5s
Resolving dependencies... 0,9s
Running 'gradlew assembleDebug'...
e: /home/patrick/.pub-cache/hosted/pub.dartlang.org/map_view-0.0.13/android/src/main/kotlin/com/apptreesoftware/mapview/MapActivity.kt: (239, 9): Expecting member declaration
e: /home/patrick/.pub-cache/hosted/pub.dartlang.org/map_view-0.0.13/android/src/main/kotlin/com/apptreesoftware/mapview/MapActivity.kt: (239, 28): Expecting member declaration
e: /home/patrick/.pub-cache/hosted/pub.dartlang.org/map_view-0.0.13/android/src/main/kotlin/com/apptreesoftware/mapview/MapActivity.kt: (239, 28): Function declaration must have a name
e: /home/patrick/.pub-cache/hosted/pub.dartlang.org/map_view-0.0.13/android/src/main/kotlin/com/apptreesoftware/mapview/MapActivity.kt: (691, 2): Missing '}
e: /home/patrick/.pub-cache/hosted/pub.dartlang.org/map_view-0.0.13/android/src/main/kotlin/com/apptreesoftware/mapview/MapActivity.kt: (246, 5): Modifier 'override' is not applicable to 'local function'
e: /home/patrick/.pub-cache/hosted/pub.dartlang.org/map_view-0.0.13/android/src/main/kotlin/com/apptreesoftware/mapview/MapActivity.kt: (259, 5): Modifier 'override' is not applicable to 'local function'
e: /home/patrick/.pub-cache/hosted/pub.dartlang.org/map_view-0.0.13/android/src/main/kotlin/com/apptreesoftware/mapview/MapActivity.kt: (325, 5): Modifier 'override' is not applicable to 'local function'
e: /home/patrick/.pub-cache/hosted/pub.dartlang.org/map_view-0.0.13/android/src/main/kotlin/com/apptreesoftware/mapview/MapActivity.kt: (334, 5): Modifier 'override' is not applicable to 'local function'
e: /home/patrick/.pub-cache/hosted/pub.dartlang.org/map_view-0.0.13/android/src/main/kotlin/com/apptreesoftware/mapview/MapActivity.kt: (339, 5): Modifier 'override' is not applicable to 'local function'
e: /home/patrick/.pub-cache/hosted/pub.dartlang.org/map_view-0.0.13/android/src/main/kotlin/com/apptreesoftware/mapview/MapActivity.kt: (345, 9): Unresolved reference. None of the following candidates is applicable because of receiver type mismatch:
@InlineOnly public operator inline fun <@OnlyInputTypes K, V> Map<out ???, ???>.get(key: ???): ??? defined in kotlin.collections
e: /home/patrick/.pub-cache/hosted/pub.dartlang.org/map_view-0.0.13/android/src/main/kotlin/com/apptreesoftware/mapview/MapActivity.kt: (346, 13): 'return' is not allowed here
e: /home/patrick/.pub-cache/hosted/pub.dartlang.org/map_view-0.0.13/android/src/main/kotlin/com/apptreesoftware/mapview/MapActivity.kt: (346, 20): Type mismatch: inferred type is Float? but Unit? was expected
e: /home/patrick/.pub-cache/hosted/pub.dartlang.org/map_view-0.0.13/android/src/main/kotlin/com/apptreesoftware/mapview/MapActivity.kt: (346, 55): Type mismatch: inferred type is Float but Unit was expected
e: /home/patrick/.pub-cache/hosted/pub.dartlang.org/map_view-0.0.13/android/src/main/kotlin/com/apptreesoftware/mapview/MapActivity.kt: (350, 9): Unresolved reference. None of the following candidates is applicable because of receiver type mismatch:
@InlineOnly public operator inline fun <@OnlyInputTypes K, V> Map<out ???, ???>.get(key: ???): ??? defined in kotlin.collections
e: /home/patrick/.pub-cache/hosted/pub.dartlang.org/map_view-0.0.13/android/src/main/kotlin/com/apptreesoftware/mapview/MapActivity.kt: (365, 9): Unresolved reference: clearMarkers
e: /home/patrick/.pub-cache/hosted/pub.dartlang.org/map_view-0.0.13/android/src/main/kotlin/com/apptreesoftware/mapview/MapActivity.kt: (396, 9): Unresolved reference: clearPolylines
e: /home/patrick/.pub-cache/hosted/pub.dartlang.org/map_view-0.0.13/android/src/main/kotlin/com/apptreesoftware/mapview/MapActivity.kt: (398, 28): Unresolved reference: createPolyline
e: /home/patrick/.pub-cache/hosted/pub.dartlang.org/map_view-0.0.13/android/src/main/kotlin/com/apptreesoftware/mapview/MapActivity.kt: (414, 24): Unresolved reference: createPolyline
e: /home/patrick/.pub-cache/hosted/pub.dartlang.org/map_view-0.0.13/android/src/main/kotlin/com/apptreesoftware/mapview/MapActivity.kt: (427, 9): Unresolved reference: clearPolygons
e: /home/patrick/.pub-cache/hosted/pub.dartlang.org/map_view-0.0.13/android/src/main/kotlin/com/apptreesoftware/mapview/MapActivity.kt: (429, 27): Unresolved reference: createPolygon
e: /home/patrick/.pub-cache/hosted/pub.dartlang.org/map_view-0.0.13/android/src/main/kotlin/com/apptreesoftware/mapview/MapActivity.kt: (445, 23): Unresolved reference: createPolygon
e: /home/patrick/.pub-cache/hosted/pub.dartlang.org/map_view-0.0.13/android/src/main/kotlin/com/apptreesoftware/mapview/MapActivity.kt: (457, 9): Unresolved reference. None of the following candidates is applicable because of receiver type mismatch:
@InlineOnly public operator inline fun <@OnlyInputTypes K, V> Map<out ???, ???>.get(key: ???): ??? defined in kotlin.collections
e: /home/patrick/.pub-cache/hosted/pub.dartlang.org/map_view-0.0.13/android/src/main/kotlin/com/apptreesoftware/mapview/MapActivity.kt: (458, 41): 'return' is not allowed here
e: /home/patrick/.pub-cache/hosted/pub.dartlang.org/map_view-0.0.13/android/src/main/kotlin/com/apptreesoftware/mapview/MapActivity.kt: (458, 48): Type inference failed. Expected type mismatch: inferred type is List<???> but Unit was expected
e: /home/patrick/.pub-cache/hosted/pub.dartlang.org/map_view-0.0.13/android/src/main/kotlin/com/apptreesoftware/mapview/MapActivity.kt: (466, 13): 'return' is not allowed here
e: /home/patrick/.pub-cache/hosted/pub.dartlang.org/map_view-0.0.13/android/src/main/kotlin/com/apptreesoftware/mapview/MapActivity.kt: (466, 20): Type mismatch: inferred type is kotlin.collections.ArrayList<String> /* = java.util.ArrayList<String> */ but Unit was expected
e: /home/patrick/.pub-cache/hosted/pub.dartlang.org/map_view-0.0.13/android/src/main/kotlin/com/apptreesoftware/mapview/MapActivity.kt: (470, 9): Unresolved reference. None of the following candidates is applicable because of receiver type mismatch:
@InlineOnly public operator inline fun <@OnlyInputTypes K, V> Map<out ???, ???>.get(key: ???): ??? defined in kotlin.collections
e: /home/patrick/.pub-cache/hosted/pub.dartlang.org/map_view-0.0.13/android/src/main/kotlin/com/apptreesoftware/mapview/MapActivity.kt: (471, 41): 'return' is not allowed here
e: /home/patrick/.pub-cache/hosted/pub.dartlang.org/map_view-0.0.13/android/src/main/kotlin/com/apptreesoftware/mapview/MapActivity.kt: (471, 48): Type inference failed. Expected type mismatch: inferred type is List<???> but Unit was expected
e: /home/patrick/.pub-cache/hosted/pub.dartlang.org/map_view-0.0.13/android/src/main/kotlin/com/apptreesoftware/mapview/MapActivity.kt: (482, 13): 'return' is not allowed here
e: /home/patrick/.pub-cache/hosted/pub.dartlang.org/map_view-0.0.13/android/src/main/kotlin/com/apptreesoftware/mapview/MapActivity.kt: (482, 20): Type mismatch: inferred type is kotlin.collections.ArrayList<String> /* = java.util.ArrayList<String> */ but Unit was expected
e: /home/patrick/.pub-cache/hosted/pub.dartlang.org/map_view-0.0.13/android/src/main/kotlin/com/apptreesoftware/mapview/MapActivity.kt: (486, 9): Unresolved reference. None of the following candidates is applicable because of receiver type mismatch:
@InlineOnly public operator inline fun <@OnlyInputTypes K, V> Map<out ???, ???>.get(key: ???): ??? defined in kotlin.collections
e: /home/patrick/.pub-cache/hosted/pub.dartlang.org/map_view-0.0.13/android/src/main/kotlin/com/apptreesoftware/mapview/MapActivity.kt: (487, 41): 'return' is not allowed here
e: /home/patrick/.pub-cache/hosted/pub.dartlang.org/map_view-0.0.13/android/src/main/kotlin/com/apptreesoftware/mapview/MapActivity.kt: (487, 48): Type inference failed. Expected type mismatch: inferred type is List<???> but Unit was expected
e: /home/patrick/.pub-cache/hosted/pub.dartlang.org/map_view-0.0.13/android/src/main/kotlin/com/apptreesoftware/mapview/MapActivity.kt: (498, 13): 'return' is not allowed here
e: /home/patrick/.pub-cache/hosted/pub.dartlang.org/map_view-0.0.13/android/src/main/kotlin/com/apptreesoftware/mapview/MapActivity.kt: (498, 20): Type mismatch: inferred type is kotlin.collections.ArrayList<String> /* = java.util.ArrayList<String> */ but Unit was expected
e: /home/patrick/.pub-cache/hosted/pub.dartlang.org/map_view-0.0.13/android/src/main/kotlin/com/apptreesoftware/mapview/MapActivity.kt: (678, 5): Modifier 'override' is not applicable to 'local function'
e: /home/patrick/.pub-cache/hosted/pub.dartlang.org/map_view-0.0.13/android/src/main/kotlin/com/apptreesoftware/mapview/MapViewPlugin.kt: (222, 30): Unresolved reference: zoomToFit
e: /home/patrick/.pub-cache/hosted/pub.dartlang.org/map_view-0.0.13/android/src/main/kotlin/com/apptreesoftware/mapview/MapViewPlugin.kt: (230, 30): Unresolved reference: clearMarkers
e: /home/patrick/.pub-cache/hosted/pub.dartlang.org/map_view-0.0.13/android/src/main/kotlin/com/apptreesoftware/mapview/MapViewPlugin.kt: (244, 55): Unresolved reference: visiblePolyline
e: /home/patrick/.pub-cache/hosted/pub.dartlang.org/map_view-0.0.13/android/src/main/kotlin/com/apptreesoftware/mapview/MapViewPlugin.kt: (244, 74): Type inference failed: Not enough information to infer parameter T in fun <T> emptyList(): List<T>
Please specify it explicitly.
e: /home/patrick/.pub-cache/hosted/pub.dartlang.org/map_view-0.0.13/android/src/main/kotlin/com/apptreesoftware/mapview/MapViewPlugin.kt: (248, 30): Unresolved reference: clearPolylines
e: /home/patrick/.pub-cache/hosted/pub.dartlang.org/map_view-0.0.13/android/src/main/kotlin/com/apptreesoftware/mapview/MapViewPlugin.kt: (262, 54): Unresolved reference: visiblePolygon
e: /home/patrick/.pub-cache/hosted/pub.dartlang.org/map_view-0.0.13/android/src/main/kotlin/com/apptreesoftware/mapview/MapViewPlugin.kt: (262, 72): Type inference failed: Not enough information to infer parameter T in fun <T> emptyList(): List<T>
Please specify it explicitly.
e: /home/patrick/.pub-cache/hosted/pub.dartlang.org/map_view-0.0.13/android/src/main/kotlin/com/apptreesoftware/mapview/MapViewPlugin.kt: (266, 30): Unresolved reference: clearPolygons
e: /home/patrick/.pub-cache/hosted/pub.dartlang.org/map_view-0.0.13/android/src/main/kotlin/com/apptreesoftware/mapview/MapViewPlugin.kt: (289, 66): Too many arguments for public final fun setCamera(target: LatLng, zoom: Float): Unit defined in com.apptreesoftware.mapview.MapActivity
e: /home/patrick/.pub-cache/hosted/pub.dartlang.org/map_view-0.0.13/android/src/main/kotlin/com/apptreesoftware/mapview/MapViewPlugin.kt: (289, 85): Too many arguments for public final fun setCamera(target: LatLng, zoom: Float): Unit defined in com.apptreesoftware.mapview.MapActivity
e: /home/patrick/.pub-cache/hosted/pub.dartlang.org/map_view-0.0.13/android/src/main/kotlin/com/apptreesoftware/mapview/MapViewPlugin.kt: (295, 40): Type mismatch: inferred type is List<String> but Int was expected
e: /home/patrick/.pub-cache/hosted/pub.dartlang.org/map_view-0.0.13/android/src/main/kotlin/com/apptreesoftware/mapview/MapViewPlugin.kt: (295, 45): Too many arguments for public final fun zoomToAnnotations(padding: Int): Unit defined in com.apptreesoftware.mapview.MapActivity
e: /home/patrick/.pub-cache/hosted/pub.dartlang.org/map_view-0.0.13/android/src/main/kotlin/com/apptreesoftware/mapview/MapViewPlugin.kt: (301, 22): Unresolved reference: zoomToPolylines
e: /home/patrick/.pub-cache/hosted/pub.dartlang.org/map_view-0.0.13/android/src/main/kotlin/com/apptreesoftware/mapview/MapViewPlugin.kt: (307, 22): Unresolved reference: zoomToPolygons
e: /home/patrick/.pub-cache/hosted/pub.dartlang.org/map_view-0.0.13/android/src/main/kotlin/com/apptreesoftware/mapview/MapViewPlugin.kt: (341, 22): Unresolved reference: setPolylines
e: /home/patrick/.pub-cache/hosted/pub.dartlang.org/map_view-0.0.13/android/src/main/kotlin/com/apptreesoftware/mapview/MapViewPlugin.kt: (346, 26): Unresolved reference: addPolyline
e: /home/patrick/.pub-cache/hosted/pub.dartlang.org/map_view-0.0.13/android/src/main/kotlin/com/apptreesoftware/mapview/MapViewPlugin.kt: (352, 26): Unresolved reference: removePolyline
e: /home/patrick/.pub-cache/hosted/pub.dartlang.org/map_view-0.0.13/android/src/main/kotlin/com/apptreesoftware/mapview/MapViewPlugin.kt: (364, 22): Unresolved reference: setPolygons
e: /home/patrick/.pub-cache/hosted/pub.dartlang.org/map_view-0.0.13/android/src/main/kotlin/com/apptreesoftware/mapview/MapViewPlugin.kt: (369, 26): Unresolved reference: addPolygon
e: /home/patrick/.pub-cache/hosted/pub.dartlang.org/map_view-0.0.13/android/src/main/kotlin/com/apptreesoftware/mapview/MapViewPlugin.kt: (375, 26): Unresolved reference: removePolygon
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':map_view: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.
* Get more help at https://help.gradle.org
BUILD FAILED in 2s
Gradle build failed: 1
My config with Flutter is
flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel dev, v0.5.7, on Linux, locale fr_FR.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
[✓] Android Studio (version 3.1)
[✓] Connected devices (1 available)
• No issues found!
Please could you help me to fix those errors ? thanks
biscuitrainbow, gannonbarnett and devmetalbr
Metadata
Metadata
Assignees
Labels
No labels