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: R #7
Comments
Did you create the Layout File? |
Sure. I created same layout file as in example. And I created Widget Configuration and WidgetReceiver. |
Does the issue persist after building it? Could you link me the code so I can take a look at it? |
https://github.com/tomriddle7/Dotgasaki |
@tomriddle7 the problem about your project is that you created a kotlin/es/antonborri/home_widget_example directory. Regards, |
@leonardocustodio It was very useful tip. It works well. Thanks. |
@leonardocustodio I got same error, but I am not create such wrong package name directories, Still says can not resolve R. any idea? |
@jinfagang Did you managed to solve this? |
I think this is an issue with how the android framework is loaded. It should also appear in files like the Do you have AndroidStudio installed? Could you try (in vscode/intellij/android studio) right click on the |
@jinfagang @petrnymsa do you receive actual runtime errors or is this more or less only when viewing the files in the IDE? |
@ABausG Acutally runtime errors, but I've managed to in the end compile it BUT (and I know this should belong to separate issue probably). I think whole "example" is wrong? Because there is no simply
|
I copied files in kotlin/es/antonborri/home_widget_example and launched main.dart but it says Unresolved reference: R
I think that this line makes error.
Do I have to import R to my project?
The text was updated successfully, but these errors were encountered: