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

issue with map_view version 1.2.50 #140

Open
apurvthakkar99 opened this issue Nov 15, 2018 · 5 comments
Open

issue with map_view version 1.2.50 #140

apurvthakkar99 opened this issue Nov 15, 2018 · 5 comments

Comments

@apurvthakkar99
Copy link

The Android Gradle plugin supports only Kotlin Gradle plugin version 1.2.51 and higher. Project 'map_view' is using version 1.2.50.

@SuperMata
Copy link

I have the same issue with map_view when building

@kyleorin
Copy link

@isaachjk
Copy link

isaachjk commented Dec 3, 2018

you can update their kotlin file at <flutter_dir>.pub-cache\hosted\pub.dartlang.org\map_view-0.0.14\android

ext.kotlin_version = '1.2.51' (compile)

at least I have not find any issue by doing this.

@Thimankrishh
Copy link

you can update their kotlin file at <flutter_dir>.pub-cache\hosted\pub.dartlang.org\map_view-0.0.14\android

ext.kotlin_version = '1.2.51' (compile)

at least I have not find any issue by doing this.

@LatinaIsaac This solution worked for me. Then I got this error.

0.0.14\android\src\main\kotlin\com\apptreesoftware\mapview\MapViewPlugin.kt: (168, 34): Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type Map<String, Any>?
e: C:\src\flutter\flutter_windows_v0.5.1-beta\flutter.pub-cache\hosted\pub.dartlang.org\map_view-0.0.14\android\src\main\kotlin\com\apptreesoftware\mapview\MapViewPlugin.kt: (171, 36): Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type Map<String, Any>?
e: C:\src\flutter\flutter_windows_v0.5.1-beta\flutter.pub-cache\hosted\pub.dartlang.org\map_view-0.0.14\android\src\main\kotlin\com\apptreesoftware\mapview\MapViewPlugin.kt: (172, 40): Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type Map<String, Any>?
e: C:\src\flutter\flutter_windows_v0.5.1-beta\flutter.pub-cache\hosted\pub.dartlang.org\map_view-0.0.14\android\src\main\kotlin\com\apptreesoftware\mapview\MapViewPlugin.kt: (173, 37): Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type Map<String, Any>?
e: C:\src\flutter\flutter_windows_v0.5.1-beta\flutter.pub-cache\hosted\pub.dartlang.org\map_view-0.0.14\android\src\main\kotlin\com\apptreesoftware\mapview\MapViewPlugin.kt: (174, 31): Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type Map<String, Any>?
e: C:\src\flutter\flutter_windows_v0.5.1-beta\flutter.pub-cache\hosted\pub.dartlang.org\map_view-0.0.14\android\src\main\kotlin\com\apptreesoftware\mapview\MapViewPlugin.kt: (175, 28): Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type Map<String, Any>?
e: C:\src\flutter\flutter_windows_v0.5.1-beta\flutter.pub-cache\hosted\pub.dartlang.org\map_view-0.0.14\android\src\main\kotlin\com\apptreesoftware\mapview\MapViewPlugin.kt: (177, 21): Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type Map<String, Any>?
e: C:\src\flutter\flutter_windows_v0.5.1-beta\flutter.pub-cache\hosted\pub.dartlang.org\map_view-0.0.14\android\src\main\kotlin\com\apptreesoftware\mapview\MapViewPlugin.kt: (178, 66): Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type Map<String, Any>?
FAILURE: Build failed with an exception.

It is handled by given solution in here.[https://github.com//issues/129#issuecomment-438165577]
Thank you all.

@hg398
Copy link

hg398 commented Jun 10, 2019

I have tried above solutions. But i get an error as:
"FAILURE: Build failed with an exception.

  • What went wrong:
    Could not resolve all files for configuration ':map_view:androidApis'.

Failed to transform file 'android.jar' to match attributes {artifactType=android-platform-attr} using transform PlatformAttrTransform
java.io.FileNotFoundException: C:\Users\Harsh Goyal\AppData\Local\Android\sdk\platforms\android-27\android.jar (The system cannot find the file specified) "

Any help please!!!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants