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.

issue with map_view version 1.2.50 #140

Open

Description

@apurvthakkar99

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

Activity

  1. SuperMata commented on Nov 25, 2018

    @SuperMata

    I have the same issue with map_view when building

  2. isaachjk commented on Dec 3, 2018

    @isaachjk

    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.

  3. Thimankrishh commented on Apr 29, 2019

    @Thimankrishh

    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.

  4. hg398 commented on Jun 10, 2019

    @hg398

    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 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