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: HomeWidgetProvider #294

Open
1 task
Tgarfr opened this issue Sep 4, 2024 · 3 comments
Open
1 task

Unresolved reference: HomeWidgetProvider #294

Tgarfr opened this issue Sep 4, 2024 · 3 comments

Comments

@Tgarfr
Copy link

Tgarfr commented Sep 4, 2024

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

  • Are you interested in working on a PR for this?
@Tgarfr Tgarfr added the enhancement New feature or request label Sep 4, 2024
@eeoom
Copy link

eeoom commented Oct 17, 2024

Same here, any suggestions?

@Meriemi-git
Copy link

Meriemi-git commented Oct 28, 2024

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

@ABausG
Copy link
Owner

ABausG commented Oct 29, 2024

Thank you @Meriemi-git I think one thing is very important:

the second opened on android folder for kotlin coding and gradle sync

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

@ABausG ABausG added question Further information is requested and removed enhancement New feature or request question Further information is requested labels Oct 29, 2024
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

4 participants