Issue
I'm brand new to Android Studio and I've been having some problems getting it up and running. Have been working on this for the last 3 days alone with not much progress. When I launch a new project, no emulator appears and there are red squiggly lines under all of the modules. Here is a pic hosted on imgur:
https://i.imgur.com/P5I2DIO.jpg
I haven't been able to find any articles on these problems and none of the tutorials I've watched have said anything about extra steps to resolve them. I am posting them as a conjoined question because I suspect they are related problems. Thanks in advance for any guidance!
Solution
"Red squiggly lines" indicate errors in your code. In this case, there's a problem with your R file. This is a file that Android generates to assign IDs to your resources.
Problems with the R file can be a number of things.
First, try:
Build -> Clean Project
If that doesn't work:
Make sure you have imported the R file of your project in the Java file of your activity. Try building the project to generate it.
If that doesn't work (this one is worth remembering):
There might be an error in one of your XML files. Look in the res folder and look for errors (red squiggly lines ;)!) in any of the files in the subfolders, fix any of these and the problem should resolve itself when R is regenerated.
Answered By - Karen Forde
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.