motion_sensors
motion_sensors copied to clipboard
Support Kotlin Gradle plugin version 1.5.20 and higher
What went wrong: The Android Gradle plugin supports only Kotlin Gradle plugin version 1.5.20 and higher. The following dependencies do not satisfy the required version: project ':motion_sensors' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.50
Same issue here
same issue
Any workaround found?
same issue
#17 this should fix it.
What I did was the following. Install all the dependencies and once the download is finished, enter the motion sensor library and go directly to the gradle configuration on the Android platform and there I make some changes such as the kotlin version and the minimum version of the SDK and it works correctly for me. I hope this information is of some use to you.
I figured out this workaround, however, this needs to be done after every time you do flutter clean!
Try using this update:
motion_sensors_updated:
git:
url: https://github.com/AnByronV/motion_sensors_updated.git
not working any work around?
error From this Plugin file: example/android/build.gradle
ext.kotlin_version = '1.3.50'
The files below (under "examples" folder) have not been fixed in #17:
-
"example/android/build.gradle"
ext.kotlin_version = '1.3.50' -
"example/android/gradle/wrapper/gradle-wrapper.properties"
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.2-all.zip
Those are still causing errors when building apk. Please, could you take a look and fix it?
What I did was the following. Install all the dependencies and once the download is finished, enter the motion sensor library and go directly to the gradle configuration on the Android platform and there I make some changes such as the kotlin version and the minimum version of the SDK and it works correctly for me. I hope this information is of some use to you.
Thanks, this worked for me. Much appreciated!
What I did was the following. Install all the dependencies and once the download is finished, enter the motion sensor library and go directly to the gradle configuration on the Android platform and there I make some changes such as the kotlin version and the minimum version of the SDK and it works correctly for me. I hope this information is of some use to you.
In ubuntu this can be done by going into root/.pub-cache/hosted/pub.dev/motion_sensors-0.1.1/android and adding a newer version of kotlin in build.gradle that matches the one in the exact same folder on this github and increasing minimum version of SDK. Works correctly afterwards.
I'm having same trouble building this using Flutterflow https://community.flutterflow.io/ask-the-community/post/kotlin-gradle-compile-error-ZWJNZLkNX5k7PCW . Also tried downloading code and building using VSC with same error.
Has there been any updates on how to fix this?