Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unresolved reference: AppSignatureHelper #168

Open
miguelmobilat opened this issue Feb 14, 2024 · 4 comments
Open

Unresolved reference: AppSignatureHelper #168

miguelmobilat opened this issue Feb 14, 2024 · 4 comments
Assignees

Comments

@miguelmobilat
Copy link

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
@iquirino
Copy link

+1 Solved with a rollback version

@alaincruz06
Copy link

alaincruz06 commented Mar 10, 2024

@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

@JesusHdez960717
Copy link

@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

@deepss1
Copy link

deepss1 commented Mar 22, 2024

@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 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants