Skip to content
This repository was archived by the owner on Jun 25, 2019. It is now read-only.
This repository was archived by the owner on Jun 25, 2019. It is now read-only.

Errors when building the plugin #90

Closed

Description

@Eimji

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

Activity

  1. danielGithinji commented on Jul 19, 2018

    @danielGithinji

    Hello,

    As @Eimji has pointed those are the error I'm receiving as well. I was at least able to run a test yesterday. Today I'm receiving the following error(s).

    ~flutter run
    Using hardware rendering with device Android SDK built for x86 64. If you get graphics artifacts, consider enabling software rendering with "--enable-software-rendering".
    Launching lib/main.dart on Android SDK built for x86 64 in debug mode...
    Initializing gradle...                                       1.6s
    Resolving dependencies...                                    3.2s
    Running 'gradlew assembleDebug'...
    e: /Users/danielgithinji/Flutter/.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: /Users/danielgithinji/Flutter/.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: /Users/danielgithinji/Flutter/.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: /Users/danielgithinji/Flutter/.pub-cache/hosted/pub.dartlang.org/map_view-0.0.13/android/src/main/kotlin/com/apptreesoftware/mapview/MapActivity.kt: (691, 2): Missing '}
    e: /Users/danielgithinji/Flutter/.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: /Users/danielgithinji/Flutter/.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: /Users/danielgithinji/Flutter/.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: /Users/danielgithinji/Flutter/.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: /Users/danielgithinji/Flutter/.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: /Users/danielgithinji/Flutter/.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 inline operator fun <@OnlyInputTypes K, V> Map<out ???, ???>.get(key: ???): ??? defined in kotlin.collections
    e: /Users/danielgithinji/Flutter/.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: /Users/danielgithinji/Flutter/.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: /Users/danielgithinji/Flutter/.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: /Users/danielgithinji/Flutter/.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 inline operator fun <@OnlyInputTypes K, V> Map<out ???, ???>.get(key: ???): ??? defined in kotlin.collections
    e: /Users/danielgithinji/Flutter/.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: /Users/danielgithinji/Flutter/.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: /Users/danielgithinji/Flutter/.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: /Users/danielgithinji/Flutter/.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: /Users/danielgithinji/Flutter/.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: /Users/danielgithinji/Flutter/.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: /Users/danielgithinji/Flutter/.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: /Users/danielgithinji/Flutter/.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 inline operator fun <@OnlyInputTypes K, V> Map<out ???, ???>.get(key: ???): ??? defined in kotlin.collections
    e: /Users/danielgithinji/Flutter/.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: /Users/danielgithinji/Flutter/.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: /Users/danielgithinji/Flutter/.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: /Users/danielgithinji/Flutter/.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: /Users/danielgithinji/Flutter/.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 inline operator fun <@OnlyInputTypes K, V> Map<out ???, ???>.get(key: ???): ??? defined in kotlin.collections
    e: /Users/danielgithinji/Flutter/.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: /Users/danielgithinji/Flutter/.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: /Users/danielgithinji/Flutter/.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: /Users/danielgithinji/Flutter/.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: /Users/danielgithinji/Flutter/.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 inline operator fun <@OnlyInputTypes K, V> Map<out ???, ???>.get(key: ???): ??? defined in kotlin.collections
    e: /Users/danielgithinji/Flutter/.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: /Users/danielgithinji/Flutter/.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: /Users/danielgithinji/Flutter/.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: /Users/danielgithinji/Flutter/.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: /Users/danielgithinji/Flutter/.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: /Users/danielgithinji/Flutter/.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: /Users/danielgithinji/Flutter/.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: /Users/danielgithinji/Flutter/.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: /Users/danielgithinji/Flutter/.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: /Users/danielgithinji/Flutter/.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: /Users/danielgithinji/Flutter/.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: /Users/danielgithinji/Flutter/.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: /Users/danielgithinji/Flutter/.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: /Users/danielgithinji/Flutter/.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: /Users/danielgithinji/Flutter/.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: /Users/danielgithinji/Flutter/.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: /Users/danielgithinji/Flutter/.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: /Users/danielgithinji/Flutter/.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: /Users/danielgithinji/Flutter/.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: /Users/danielgithinji/Flutter/.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: /Users/danielgithinji/Flutter/.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: /Users/danielgithinji/Flutter/.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: /Users/danielgithinji/Flutter/.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: /Users/danielgithinji/Flutter/.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: /Users/danielgithinji/Flutter/.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 16s
    Gradle build failed: 1
    
    

    Here's my flutter doctor summary:

    Doctor summary (to see all details, run flutter doctor -v):
    [✓] Flutter (Channel dev, v0.5.7, on Mac OS X 10.13.3 17D102, locale en-KE)
    [✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
    [!] iOS toolchain - develop for iOS devices
        ✗ Xcode installation is incomplete; a full installation is necessary for iOS development.
          Download at: https://developer.apple.com/xcode/download/
          Or install Xcode via the App Store.
          Once installed, run:
            sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
        ✗ libimobiledevice and ideviceinstaller are not installed. To install, run:
            brew install --HEAD libimobiledevice
            brew install ideviceinstaller
        ✗ ios-deploy not installed. To install:
            brew install ios-deploy
        ✗ CocoaPods not installed.
            CocoaPods is used to retrieve the iOS platform side's plugin code that responds to your plugin usage on the Dart side.
            Without resolving iOS dependencies with CocoaPods, plugins will not work on iOS.
            For more info, see https://flutter.io/platform-plugins
          To install:
            brew install cocoapods
            pod setup
    [✓] Android Studio (version 2.3)
        ✗ Flutter plugin not installed; this adds Flutter specific functionality.
        ✗ Dart plugin not installed; this adds Dart specific functionality.
    [!] VS Code (version 1.25.1)
    [✓] Connected devices (1 available)
    
    ! Doctor found issues in 2 categories.
    

    Please assist in fixing these issues

  2. feriyalsusanto commented on Jul 19, 2018

    @feriyalsusanto

    Same here, i got the error today. After upgrade the package from 0.0.12 to 0.0.13.

  3. laljg commented on Jul 19, 2018

    @laljg

    Same here

  4. NTMS2017 commented on Jul 19, 2018

    @NTMS2017

    After upgrade the package from 0.0.12 to 0.0.13.
    Same here, I just make a clean project and got error on building the my app. Need Urgent help :(

    flutter --version
    Flutter 0.5.7 • channel dev • https://github.com/flutter/flutter.git
    Framework • revision 66091f9696 (10 days ago) • 2018-07-09 12:52:41 -0700
    Engine • revision 6fe748490d
    Tools • Dart 2.0.0-dev.63.0.flutter-4c9689c1d2

    pubspec.yaml
    dependencies:
    flutter:
    sdk: flutter
    flutter_localizations:
    sdk: flutter

    The following adds the Cupertino Icons font to your application.

    Use with the CupertinoIcons class for iOS style icons.

    cupertino_icons: "^0.1.2"
    connectivity: "^0.3.1"
    decimal: "^0.2.0"
    url_launcher: "^3.0.2"
    map_view: "^0.0.13"
    call_number: "^0.0.1"
    tripledes: "^2.0.1"
    shared_preferences: "^0.4.2"

    android/build.gardle
    buildscript {
    repositories {
    google()
    jcenter()
    }

    dependencies {
        classpath 'com.android.tools.build:gradle:3.1.2'
        classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.1.2-4'
    }
    

    }

    allprojects {
    repositories {
    google()
    jcenter()
    }
    }

    rootProject.buildDir = '../build'
    subprojects {
    project.buildDir = "${rootProject.buildDir}/${project.name}"
    }
    subprojects {
    project.evaluationDependsOn(':app')
    }

    task clean(type: Delete) {
    delete rootProject.buildDir
    }

    android/app/build.gradle
    def localProperties = new Properties()
    def localPropertiesFile = rootProject.file('local.properties')
    if (localPropertiesFile.exists()) {
    localPropertiesFile.withReader('UTF-8') { reader ->
    localProperties.load(reader)
    }
    }

    def flutterRoot = localProperties.getProperty('flutter.sdk')
    if (flutterRoot == null) {
    throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
    }

    def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
    if (flutterVersionCode == null) {
    throw new GradleException("versionCode not found. Define flutter.versionCode in the local.properties file.")
    }

    def flutterVersionName = localProperties.getProperty('flutter.versionName')
    if (flutterVersionName == null) {
    throw new GradleException("versionName not found. Define flutter.versionName in the local.properties file.")
    }

    apply plugin: 'com.android.application'
    apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"

    android {
    compileSdkVersion 27

    lintOptions {
        disable 'InvalidPackage'
    }
    
    defaultConfig {
        // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
        applicationId "com.niyazi.niyazimobile"
        minSdkVersion 16
        targetSdkVersion 27
        versionCode flutterVersionCode.toInteger()
        versionName flutterVersionName
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    
    buildTypes {
        release {
            // TODO: Add your own signing config for the release build.
            // Signing with the debug keys for now, so `flutter run --release` works.
            signingConfig signingConfigs.debug
        }
    }
    

    }

    flutter {
    source '../..'
    }

    dependencies {
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.android.support.test:runner:1.0.2'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
    }

    ERROR
    Launching lib/main.dart on Android SDK built for x86 in debug mode...
    Initializing gradle...
    Resolving dependencies...
    Running 'gradlew assembleDebug'...
    e: /Users/niyazitoros/flutter/.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: /Users/niyazitoros/flutter/.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: /Users/niyazitoros/flutter/.pub-cache/hosted/pub.dartlang.org/map_view-0.0.13/android/src/main/kotlin/com/apptreesoftware/mapview/MapActivity.kt: (691, 2): Missing '}
    e: /Users/niyazitoros/flutter/.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: /Users/niyazitoros/flutter/.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: /Users/niyazitoros/flutter/.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: /Users/niyazitoros/flutter/.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: /Users/niyazitoros/flutter/.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: /Users/niyazitoros/flutter/.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: /Users/niyazitoros/flutter/.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: /Users/niyazitoros/flutter/.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: /Users/niyazitoros/flutter/.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: /Users/niyazitoros/flutter/.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: /Users/niyazitoros/flutter/.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: /Users/niyazitoros/flutter/.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: /Users/niyazitoros/flutter/.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: /Users/niyazitoros/flutter/.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: /Users/niyazitoros/flutter/.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: /Users/niyazitoros/flutter/.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: /Users/niyazitoros/flutter/.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: /Users/niyazitoros/flutter/.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: /Users/niyazitoros/flutter/.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: /Users/niyazitoros/flutter/.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: /Users/niyazitoros/flutter/.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: /Users/niyazitoros/flutter/.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: /Users/niyazitoros/flutter/.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 /* = java.util.ArrayList */ but Unit was expected e: /Users/niyazitoros/flutter/.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.get(key: ???): ??? defined in kotlin.collections
    e: /Users/niyazitoros/flutter/.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: /Users/niyazitoros/flutter/.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: /Users/niyazitoros/flutter/.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: /Users/niyazitoros/flutter/.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 /* = java.util.ArrayList */ but Unit was expected e: /Users/niyazitoros/flutter/.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.get(key: ???): ??? defined in kotlin.collections
    e: /Users/niyazitoros/flutter/.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: /Users/niyazitoros/flutter/.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: /Users/niyazitoros/flutter/.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: /Users/niyazitoros/flutter/.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 /* = java.util.ArrayList */ but Unit was expected
    e: /Users/niyazitoros/flutter/.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: /Users/niyazitoros/flutter/.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: /Users/niyazitoros/flutter/.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: /Users/niyazitoros/flutter/.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: /Users/niyazitoros/flutter/.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 emptyList(): List
    Please specify it explicitly.

    e: /Users/niyazitoros/flutter/.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: /Users/niyazitoros/flutter/.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: /Users/niyazitoros/flutter/.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 emptyList(): List
    Please specify it explicitly.

    e: /Users/niyazitoros/flutter/.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: /Users/niyazitoros/flutter/.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 fınal fun setCamera(target: LatLng, zoom: Float): Unit defined in com.apptreesoftware.mapview.MapActivity
    e: /Users/niyazitoros/flutter/.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 fınal fun setCamera(target: LatLng, zoom: Float): Unit defined in com.apptreesoftware.mapview.MapActivity
    e: /Users/niyazitoros/flutter/.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 but Int was expected
    e: /Users/niyazitoros/flutter/.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 fınal fun zoomToAnnotations(padding: Int): Unit defined in com.apptreesoftware.mapview.MapActivity
    e: /Users/niyazitoros/flutter/.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: /Users/niyazitoros/flutter/.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: /Users/niyazitoros/flutter/.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: /Users/niyazitoros/flutter/.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: /Users/niyazitoros/flutter/.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: /Users/niyazitoros/flutter/.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: /Users/niyazitoros/flutter/.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: /Users/niyazitoros/flutter/.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. Run with --scan to get full insights.

    • Get more help at https://help.gradle.org

    BUİLD FAILED in 21s
    Finished with error: Gradle build failed: 1

  5. ofthesea-io commented on Jul 19, 2018

    @ofthesea-io

    Broken here on : map_view: "^0.0.13"

  6. matthewtsmith commented on Jul 20, 2018

    @matthewtsmith
    Member

    Looks like this was caused by some bad code in #60

    I failed to test on Android after merging.

    I'm going to revert that PR.

  7. matthewtsmith commented on Jul 20, 2018

    @matthewtsmith
    Member

    Released 0.0.14 that should fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions