-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: Kotlin Gradle plugin version #3
Comments
You have to degrade your Kotlin Gradle Version : 1.3.0, because flutter_rtmp_publisher using gradle version of 1.3.0. |
Howdy! forgive me but I must be missing something because just changing build.gradle ext.kotlin_version = '1.3.50' to "1.3.0" doesn't fix the issue. Can you please be more specific on how to downgrade property. Thanks. I tried a flutter clean but still got the same error
|
resolved, changing minSdkVersion 16 to 21 and copying this packages Buildscript worked. |
@Vercjames , I too have the same issue. I have changed minSdkVersion 16 to 21. Still, I am getting the error. Could you detail copying these packages build scripts mean? |
Hit me up with the error message you are getting. Additionally after changing the 16 to 21 and then downgrading the Grable Version, I ran a android/build.gradle buildscript {
ext.kotlin_version = '1.3.0'
repositories {
google()
jcenter()
maven { url 'https://jitpack.io' }
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
allprojects {
repositories {
google()
jcenter()
}
}
rootProject.buildDir = '../build'
subprojects {
project.buildDir = "${rootProject.buildDir}/${project.name}"
}
subprojects {
project.evaluationDependsOn(':app')
}
task clean(type: Delete) {
delete rootProject.buildDir
} |
Thanks @Vercjames its resolved |
@Vercjames my issue is not getting resolved by doing these three things
Could u explain me in some detail? |
Can you provide me some context kind sir. an error message perhaps. I assume you are trying to set this all up in a new flutter project. Also I used windows to compile my application, if you are MacOS something may be different with the pod installation. |
@Vercjames
I have set minsdk in app build.gradle to 21 and done flutter clean as well. |
Peculiar - since the provided script should have downgraded gradle for you. but rather than leaving you hanging I made a video to hopefully put this thread to bed. hopefully this solves the issue. |
@Vercjames **FAILURE: Build failed with an exception.
BUILD FAILED in 32s FAILURE: Build failed with an exception.
BUILD FAILED in 3s The plugin camera could not be built due to the issue above.** |
after downgrading this the error I'm having FAILURE: Build failed with an exception.
|
Hi
I use your lib and found error when build my app
What should I do?
Thank you
The text was updated successfully, but these errors were encountered: