Skip to content

Flutter Android Build Failed #52

@mfarooqzahid

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions