arcore_flutter_plugin icon indicating copy to clipboard operation
arcore_flutter_plugin copied to clipboard

Kotlin Version error

Open SudVig opened this issue 2 years ago • 13 comments

I got the below error I don't know how to solve it

  • 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 ':arcore_flutter_plugin' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.50

SudVig avatar Dec 02 '23 08:12 SudVig

i am facing same issue. looking for solutions

reyelahmad avatar Dec 02 '23 21:12 reyelahmad

It is easy to solve.

  • Open the project with Android studio.
  • Open build.gradle(Module:arcore_flutter_plugin)
  • Change ext.kotlin_version = '1.5.31' which is in buildscript {
  • Change classpath 'com.android.tools.build:gradle:3.5.4' which is in dependencies {
  • Change minSdkVersion 25 which is in defaultConfig {

You also have to change minSdkVersion 25 which is in build.gradle(Module:app) The error will disappear.

SanKoKo avatar Dec 26 '23 06:12 SanKoKo

Thank you, @SanKoKo , this solved the issue for me.

While browsing in the plugin repo, I found branch 'android-upgrading' which has the correct versions in the build.gradle files. I updated the plugin from that branch, updated ComplieSdkVersion to 34 in my app build.gradle and I am a happy man.

oscarys avatar Dec 26 '23 23:12 oscarys

Thank you, @SanKoKo , this solved the issue for me.

While browsing in the plugin repo, I found branch 'android-upgrading' which has the correct versions in the build.gradle files. I updated the plugin from that branch, updated ComplieSdkVersion to 34 in my app build.gradle and I am a happy man.

Thank you for your information. I didn't notice it.

SanKoKo avatar Dec 27 '23 03:12 SanKoKo

Thank you, @SanKoKo , this solved the issue for me.

While browsing in the plugin repo, I found branch 'android-upgrading' which has the correct versions in the build.gradle files. I updated the plugin from that branch, updated ComplieSdkVersion to 34 in my app build.gradle and I am a happy man.

How to update the plugin from the branch?

SudVig avatar Dec 28 '23 09:12 SudVig

Its not working

Thank you, @SanKoKo , this solved the issue for me. While browsing in the plugin repo, I found branch 'android-upgrading' which has the correct versions in the build.gradle files. I updated the plugin from that branch, updated ComplieSdkVersion to 34 in my app build.gradle and I am a happy man.

Thank you for your information. I didn't notice it.

It is easy to solve.

  • Open the project with Android studio.
  • Open build.gradle(Module:arcore_flutter_plugin)
  • Change ext.kotlin_version = '1.5.31' which is in buildscript {
  • Change classpath 'com.android.tools.build:gradle:3.5.4' which is in dependencies {
  • Change minSdkVersion 25 which is in defaultConfig {

You also have to change minSdkVersion 25 which is in build.gradle(Module:app) The error will disappear.

Its not working

jahanzaib999 avatar Feb 16 '24 10:02 jahanzaib999

I follow the above steps but still the same error is showing

  • 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 ':arcore_flutter_plugin' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.50

Rohan-Beta avatar Feb 26 '24 15:02 Rohan-Beta

I follow the above steps but still the same error is showing

  • 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 ':arcore_flutter_plugin' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.50

Did you sync the gradle?

SanKoKo avatar Feb 26 '24 17:02 SanKoKo

Its not working

Thank you, @SanKoKo , this solved the issue for me. While browsing in the plugin repo, I found branch 'android-upgrading' which has the correct versions in the build.gradle files. I updated the plugin from that branch, updated ComplieSdkVersion to 34 in my app build.gradle and I am a happy man.

Thank you for your information. I didn't notice it.

It is easy to solve.

  • Open the project with Android studio.
  • Open build.gradle(Module:arcore_flutter_plugin)
  • Change ext.kotlin_version = '1.5.31' which is in buildscript {
  • Change classpath 'com.android.tools.build:gradle:3.5.4' which is in dependencies {
  • Change minSdkVersion 25 which is in defaultConfig {

You also have to change minSdkVersion 25 which is in build.gradle(Module:app) The error will disappear.

Its not working

What error do you get?

SanKoKo avatar Feb 26 '24 17:02 SanKoKo

I sync and I do the process by using vscode. Should I use Android studio? Can you provide me the source code that have this package On Mon, 26 Feb, 2024, 10:35 pm SanKoKo, @.> wrote: I follow the above steps but still the same error is showing - 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 ':arcore_flutter_plugin' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.50 Did you sync the gradle? — Reply to this email directly, view it on GitHub <#222 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/A52SKLDSWUP72NQHPRPWH2LYVS6FRAVCNFSM6AAAAABAD3U6DSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNRUGY3DEMJVGQ . You are receiving this because you commented.Message ID: @.>

Sure, you must use Android studio for this issue.

SanKoKo avatar Feb 26 '24 17:02 SanKoKo

I sync and I do the process by using vscode. Should I use Android studio? Can you provide me the source code that have this package On Mon, 26 Feb, 2024, 10:35 pm SanKoKo, @.> wrote: I follow the above steps but still the same error is showing - 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 ':arcore_flutter_plugin' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.50 Did you sync the gradle? — Reply to this email directly, view it on GitHub <#222 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/A52SKLDSWUP72NQHPRPWH2LYVS6FRAVCNFSM6AAAAABAD3U6DSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNRUGY3DEMJVGQ . You are receiving this because you commented.Message ID: _@**.**_>

Sure, you must use Android studio for this issue.

I use android studio but get the same error. Can you please provide a source code that have this package?

Rohan-Beta avatar Feb 26 '24 18:02 Rohan-Beta

I sync and I do the process by using vscode. Should I use Android studio? Can you provide me the source code that have this package On Mon, 26 Feb, 2024, 10:35 pm SanKoKo, @.> wrote: I follow the above steps but still the same error is showing - 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 ':arcore_flutter_plugin' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.50 Did you sync the gradle? — Reply to this email directly, view it on GitHub <#222 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/A52SKLDSWUP72NQHPRPWH2LYVS6FRAVCNFSM6AAAAABAD3U6DSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNRUGY3DEMJVGQ . You are receiving this because you commented.Message ID: _@**.**_>

Sure, you must use Android studio for this issue.

I use android studio but get the same error. Can you please provide a source code that have this package?

Yes, [email protected]:SanKoKo/ar_core_flutter_testing_project.git In that project, I tested the earth and moon.

SanKoKo avatar Feb 26 '24 18:02 SanKoKo

I sync and I do the process by using vscode. Should I use Android studio? Can you provide me the source code that have this package On Mon, 26 Feb, 2024, 10:35 pm SanKoKo, @.> wrote: I follow the above steps but still the same error is showing - 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 ':arcore_flutter_plugin' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.50 Did you sync the gradle? — Reply to this email directly, view it on GitHub <#222 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/A52SKLDSWUP72NQHPRPWH2LYVS6FRAVCNFSM6AAAAABAD3U6DSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNRUGY3DEMJVGQ . You are receiving this because you commented.Message ID: _@**.**_>

Sure, you must use Android studio for this issue.

I use android studio but get the same error. Can you please provide a source code that have this package?

Yes, [email protected]:SanKoKo/ar_core_flutter_testing_project.git In that project, I tested the earth and moon.

I clone it but its still shows error , i think arcore_flutter_plugin has bug

Rohan-Beta avatar Feb 27 '24 06:02 Rohan-Beta