![]() ![]() If you are using a String build config field in your project, this might be the case: buildConfigField "String", "source", "play" ![]() This setup will give the error: cannot find symbol variable, this is because the resource file can only be in both flavors or only in the main. ![]() make sure the resource file is not declared/added both in only one of the flavors and in main.Įxample: a_layout_file.xml file containing the symbol variable(s) Perform a Gradle sync (via Tools > Android > Sync Project with Gradle Files).Capitals or symbols are not allowed for some reason. Make sure your resource names consist of.Make sure there are no errors or typos in your XML files.Some basic steps after removing the import, if those errors appear: This question contains a lot of helpful tips if you get some error referring to R after removing the import. That should be automatically generated and recognized.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |