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
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,
i have followed the read me
https://pub.dev/packages/auth0_flutter
2
Answers
Goto, android -> build.gradle
ext.kotlin_version = '1.9.20'