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

Kotlin Redeclaration error #15

Closed
TheLastGimbus opened this issue Aug 19, 2021 · 1 comment
Closed

Kotlin Redeclaration error #15

TheLastGimbus opened this issue Aug 19, 2021 · 1 comment

Comments

@TheLastGimbus
Copy link

TheLastGimbus commented Aug 19, 2021

Hi there!

After update, I got ton of some "redeclaration" (and other) Kotlin errors

Luckly, I was able to solve them with:

# in my app directory
flutter clean
cd android
./gradlew clean

cd ..
flutter pub get
flutter run
# Yay it works!

Also in android/build.gradle i updated ext.kotlin_version to '1.5.10', but it was for other plugins so it may not be required for foreground_task

I'm leaving this here in case someome has this issue too (dunno if I should close it right ahead or leave it open 🤷)

@Dev-hwang
Copy link
Owner

This can happen with any plugin. This happens especially often when trying to upgrade plugins. Most of these problems can be solved by entering the flutter clean command for problems with the cache remaining locally.

Thank you @TheLastGimbus. It's okay to keep this issue open as there may be someone suffering from this.

@Dev-hwang Dev-hwang pinned this issue Aug 26, 2021
@Dev-hwang Dev-hwang changed the title Ton of Kotlin errors after updating from 2.0.5 to 2.2.0 Redeclaration error Sep 15, 2022
@Dev-hwang Dev-hwang changed the title Redeclaration error Kotlin Redeclaration error Sep 15, 2022
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