Unresolved reference: AppSignatureHelper
smart_auth-2.0.0/android/src/main/kotlin/fman/ge/smart_auth/SmartAuthPlugin.kt:99:26 Unresolved reference: AppSignatureHelper FAILURE: Build failed with an exception.
- What went wrong: Execution failed for task ':smart_auth:compileDebugKotlin'.
A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction Compilation error. See log for more details
- Version 4.0.0
+1 Solved with a rollback version
@iquirino which package did you rollback-ed into? In case you're speaking of smart_auth, Iยดm trying with smart_auth: ^1.1.1 (the previous, since the latest is smart_auth: ^2.0.0) and getting the same bug. I can't rollback Flutter_Pinput because I'll be getting the old and reported Error on Android 14
@miguelmobilat @iquirino @alaincruz06 my team and I were struggling with the same problem, and the solution we came to, was using Kotlin version 1.8.0 (same as the smarth_auth: 2.0.0)
According to docs:
We should set project kotlin version to 1.8.0 or above because of the new requirement for sdk 34 RECEIVER_EXPORTED. Or we would get duplicate class error in different kotlin versions.
so in the android level build.gradle file update the kotlin version like below:
// android/build.gradle`
buildscript { ext.kotlin_version = '1.8.0' }
So bassically we end using pinput: 4.0.0 (that under the hood uses smart_auth: 2.0.0) and kotlin_version = '1.8.0'
BTW, the above was purely a suggestion :sweat_smile:, we were using kotlin_version = '1.9.0' and it doesn't work
Feel free to test this (i don't know why it works) solution and give us feedback if it works for you too
@miguelmobilat @iquirino @alaincruz06 my team and I were struggling with the same problem, and the solution we came to, was using Kotlin version 1.8.0 (same as the
smarth_auth: 2.0.0)According to docs:
We should set project kotlin version to 1.8.0 or above because of the new requirement for sdk 34 RECEIVER_EXPORTED. Or we would get duplicate class error in different kotlin versions. so in the android level build.gradle file update the kotlin version like below: // android/build.gradle`
buildscript { ext.kotlin_version = '1.8.0' }So bassically we end using
pinput: 4.0.0(that under the hood usessmart_auth: 2.0.0) andkotlin_version = '1.8.0'BTW, the
abovewas purely a suggestion ๐ , we were usingkotlin_version = '1.9.0'and it doesn't workFeel free to test this (i don't know why it works) solution and give us feedback if it works for you too
This worked, feels illegal but yes ๐
I had to change the kotlin version from 1.8.22 to 1.8.0
This might mean that the kotlin version in smart_auth needs to be upgraded ๐ค