This repository was archived by the owner on Jun 25, 2019. It is now read-only.
Repository navigation
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
Reacted by ntpscrt, Gannon and Christian Douglas Alcântara
Metadata
Metadata
Assignees
Labels
No labels
Activity
danielGithinji commentedon Jul 19, 2018
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).
Here's my flutter doctor summary:
Please assist in fixing these issues
feriyalsusanto commentedon Jul 19, 2018
Same here, i got the error today. After upgrade the package from 0.0.12 to 0.0.13.
laljg commentedon Jul 19, 2018
Same here
NTMS2017 commentedon Jul 19, 2018
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()
}
}
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
}
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.
Execution failed for task ':map_view:compileDebugKotlin'.
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
ofthesea-io commentedon Jul 19, 2018
Broken here on :
map_view: "^0.0.13"matthewtsmith commentedon Jul 20, 2018
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.
matthewtsmith commentedon Jul 20, 2018
Released 0.0.14 that should fix it.