Flutter_Pinput icon indicating copy to clipboard operation
Flutter_Pinput copied to clipboard

Unresolved reference: AppSignatureHelper

Open miguelmobilat opened this issue 2 years ago โ€ข 4 comments

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

miguelmobilat avatar Feb 14 '24 14:02 miguelmobilat

+1 Solved with a rollback version

iquirino avatar Feb 27 '24 19:02 iquirino

@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

alaincruz06 avatar Mar 10 '24 17:03 alaincruz06

@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

JesusHdez960717 avatar Mar 11 '24 20:03 JesusHdez960717

@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 ๐Ÿ˜…, 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

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 ๐Ÿค”

deepss1 avatar Mar 22 '24 04:03 deepss1