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

Conflicting declarations: val TAG: String for Android #430

Open
YankoSoulisimo opened this issue Jul 31, 2024 · 1 comment
Open

Conflicting declarations: val TAG: String for Android #430

YankoSoulisimo opened this issue Jul 31, 2024 · 1 comment

Comments

@YankoSoulisimo
Copy link

YankoSoulisimo commented Jul 31, 2024

Hello, I have been using the sign_in_with_apple plugin for quite a long time. Recently I updated from version 6.1.0 to 6.1.1. After, when running on Android I get:

e: file:///Users/xxx/.pub-cache/hosted/pub.dev/sign_in_with_apple-6.1.1/android/src/main/kotlin/com/aboutyou/dart_packages/sign_in_with_apple/SignInWithApplePlugin.kt:19:5 Conflicting declarations:
val TAG: String
e: file:///Users/xxx/.pub-cache/hosted/pub.dev/sign_in_with_apple-6.1.1/android/src/main/kotlin/com/aboutyou/dart_packages/sign_in_with_apple/SignInWithApplePlugin.kt:146:13 Overload resolution ambiguity between candidates:
val TAG: String
val TAG: String
e: file:///Users/xxx/.pub-cache/hosted/pub.dev/sign_in_with_apple-6.1.1/android/src/main/kotlin/com/aboutyou/dart_packages/sign_in_with_apple/SignInWithApplePlugin.kt:154:13 Overload resolution ambiguity between candidates:
val TAG: String
val TAG: String

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':sign_in_with_apple:compileDebugKotlin'.

A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
Compilation error. See log for more details

I don't seem to be able to fix this problem - I tried cleaning cache, pub-cache, removing pubspec.lock and running pub get again. The only way for me to have my app work again is to downgrade to 6.1.0. Any ideas why that might be? Or go and manually remove the:

val TAG = "SignInWithApple" and replace the two TAG usages with the string "SignInWithApple" directly.

@tp
Copy link
Collaborator

tp commented Aug 6, 2024

6.1.1 removed the Flutter embedding V1, but it does not look like this is the issue here.

Could you please try the preview release @ https://pub.dev/packages/sign_in_with_apple/versions/6.1.2-beta1?

It should only fix a warning and not be a required update, but maybe you're lucky and this'll fix your issue :)

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

2 participants