-
-
Notifications
You must be signed in to change notification settings - Fork 214
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: HomeWidgetProvider #294
Comments
Same here, any suggestions? |
I had the same problem after adding home_widget to flutter pubspec.yml HomeWidgetProvider wasn't resolved as any of the es.antonborri.home_widget kotlin classes. To permit Android Studio to resolve dependencies i removed home_widget dependency, re-sync gradle, re-add dependency and sync gradle again, and it works, all es.antonborri.home_widget kotlin classes are were resolved. NB: I have two Android studio launched, the first for flutter coding, flutter pub add/remove, with project dir opened and the second opened on android folder for kotlin coding and gradle sync |
Thank you @Meriemi-git I think one thing is very important:
when manipulating the native android files you should open android studio at the android folder of your app because Android Studio when configured as a "Flutter Dev" environment doesn't properly use all the android tools |
Problem to solve
HomeWidgetProvider is not recognized by AndroidStudio, how does it find this class?
Proposal
How to transfer the Flutter plugin to Android?
More information
No response
Which Platform would be improved?
Android
Other
The text was updated successfully, but these errors were encountered: