Open aztrock opened 5 years ago
could u try to modify the line in cipher2\android\build.gradle?
ext.kotlin_version = '1.3.0' // to 1.3
or try to use vscode
@aztrock any feedback?
@aztrock any feedback?
@shyandsy same mistake,tried 1.3.0,still same error, it seems cipher2 in flutter still use 1.2.71 kotlin
The flutter plugin is using the Kotlin 1.2.71 as default.
I found these solution on stackoverflow
The problem is you are using version 3.3.1 of the Android Gradle plugin, which enforces Kotlin 1.3.0 or above. At the same time, the geolocator package depends on google_api_availability, which seems to be using Kotlin 1.2.71. At the moment there is no version of google_api_availability that uses Kotlin 1.3.0 or above, so you only have 1 solution - downgrade the Android Gradle plugin to version 3.2.1.
@shyandsy thanku very much for ur kind help,i 'll try it later~
作者你好, 我也碰到这个问题了.
2: ext.kotlin_version = '1.3.21' 这个貌似只对自己的项目有效,对引入的扩展没有作用
3: 经过测试, 进行降级 classpath 'com.android.tools.build:gradle:3.3.1' -> classpath 'com.android.tools.build:gradle:3.2.1'
可以解决这个问题,但是,因为我的项目依赖 com.google.firebase:firebase-core:16.0.8 会引入更大问题:所有androidx全部冲突.
androidx 又是另外一个依赖必备的. 所以只能暂时观望了
不甘心自己动手了下. Fork了项目. 改了这2个地方.
ext.kotlin_version = '1.3.21' classpath 'com.android.tools.build:gradle:3.3.1'
然后依赖改成新的git地址. 完美解决.