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

Does‘t support android studio 3.3.2 #154

Open
baoolong opened this issue Apr 18, 2019 · 6 comments
Open

Does‘t support android studio 3.3.2 #154

baoolong opened this issue Apr 18, 2019 · 6 comments

Comments

@baoolong
Copy link

android studio 3.3.2 support kotlin 1.3.0 or higher,but plug version is 1.2.50,
I forced the kotlin version of the plugin to 1.3.0, the compilation could not pass.
please remove buildToolsVersion from build.gradle

@ammaar90
Copy link

Same issue
Screenshot 2019-04-20 at 12 29 09 AM

@parthvora25
Copy link

parthvora25 commented Apr 22, 2019

Please check if this can be internet issue. I mean due to slow internet proper packages might not be downloaded. I had this same error but after some time, with proper internet working on my laptop for building the project, it worked out....

And yes my android studio version is 3.3.1 and not 3.3.2 and it works in that.

@AronJorge
Copy link

I have the same problem and I can not solve it

@Thimankrishh
Copy link

First I put kotlin-gradle-plugin:1.2.51 as this and i got an error saying error in this file.
.pub-cache\hosted\pub.dartlang.org\map_view-0.0.14\android\build.gradle
In this file I edited as below. What I done is in here as comment.

buildscript {
ext.kotlin_version = '1.2.51' // change this to the version which have in our project build.gradle
repositories {
google()
jcenter()
}

dependencies {
    classpath 'com.android.tools.build:gradle:3.2.1' //  change this to the version which have in our project build.gradle
    classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}

}

After that I got an error in this file.
.pub-cache\hosted\pub.dartlang.org\map_view-0.0.14\android\src\main\kotlin\com\apptreesoftware\mapview

Then I changed the code as below.

Line 168: Change to val cameraDict = mapOptions!!["cameraPosition"] as Map<String, Any>
Line 171: Change to showUserLocation = mapOptions!!["showUserLocation"] as Boolean
Line 172: Change to showMyLocationButton = mapOptions!!["showMyLocationButton"] as Boolean
Line 173: Change to showCompassButton = mapOptions!!["showCompassButton"] as Boolean
Line 174: Change to hideToolbar = mapOptions!!["hideToolbar"] as Boolean
Line 175: Change to mapTitle = mapOptions!!["title"] as String
Line 177: Change to if (mapOptions!!["mapViewType"] != null) {
Line 178: Change to val mappedMapType: Int? = mapTypeMapping.get(mapOptions!!["mapViewType"]);

This method worked for me.
For more details check these #129 (comment)
#140 (comment)

@iOShuyang
Copy link

ERROR: The Android Gradle plugin supports only Kotlin Gradle plugin version 1.2.51 and higher. Project 'map_view' is using version 1.2.50.
Affected Modules: app

I want to know how to solve it.

@iOShuyang
Copy link

buildscript {
ext.kotlin_version = '1.3.10'
repositories {
google()
jcenter()
}

dependencies {
    classpath 'com.android.tools.build:gradle:3.4.1'
    classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}

}

ERROR: The Android Gradle plugin supports only Kotlin Gradle plugin version 1.3.10 and higher.
The following dependencies do not satisfy the required version:
project ':map_view' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.2.50
Affected Modules: app

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