Skip to content

Flutter Android Build Failed #52

Open

Description

@mfarooqzahid

Checklist

  • I have looked into the Readme and have not found a suitable solution or answer.
  • I have searched the issues and have not found a suitable solution or answer.
  • I have searched the Auth0 Community forums and have not found a suitable solution or answer.
  • I agree to the terms within the Auth0 Code of Conduct.

Description

I'm doing auth0 in Flutter using the auth0_flutter package after following the readme and proper configuration(android) I got a build error that says:
e: Incompatible classes were found in dependencies. Remove them from the classpath or use '-Xskip-metadata-version-check' to suppress errors

[!] Your project requires a newer version of the Kotlin Gradle plugin. │ │ Find the latest version on https://kotlinlang.org/docs/releases.html#release-details, then │ │ update C:\Users\Farooq Zahid\auth0\android\build.gradle: │ │ ext.kotlin_version = '<latest-version>'

after finding the solution on the internet i reached to the point the i need to change the Kotlin version inside the android level build.gradle file inside the build block although that block was not present there and i added manually
`buildscript {
repositories {
google()
mavenCentral()
}

dependencies {
    // Add any necessary dependencies here
}
ext.kotlin_version = '1.7.1'

}
`
I have played with different version of the Kotlin but still getting the same error,

Reproduction

1

Additional context

No response

Platform

Android

Platform version(s)

No response

Activity

  1. HammadKhan045 commented on May 28, 2024

    @HammadKhan045

    hey farooq I am stuck to call back to app can you help me with that I really need some guidance

  2. mfarooqzahid commented on May 28, 2024

    @mfarooqzahid
    Author
  3. val4oss commented on Jun 30, 2024

    @val4oss

    I faced this same problem and changing the ext.kotlin_version didn't solved the issue. However the solution was to go to the file android/settings.gradle and change the kotlin version into the plugins session:

    plugins {
        id "dev.flutter.flutter-plugin-loader" version "1.0.0"
        id "com.android.application" version "7.3.0" apply false
        id "org.jetbrains.kotlin.android" version "1.9.0" apply false  /// <--- Was 1.7.1
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions