-1

I just started my first time android studio. Tried to run hello world but got an error. "Cant resolve symbol 'R' " tips from the internet like clear and rebuild didn´t work! I haven´t changed anything after creating the project. I also reinstalled android studio multiple times now but the problem is still there. Until now i have no clue about android studio but experience with java.

Nothing is changed and i allways get the red R. i would be so thankfull if you can help me out of this.

Edit: the duplicate is very similar but i´ve looked up my files now, but i found no error. I don´t use Eclipse btw.

If i add an:import android.R; the problem seems to be solved but activity_main gets red then. And i prefer a "normal" solution. There must be a difference why other people can run hello world without problems. While checking the log i found something.C:\Users\J?rgen\....... file not found. this occures multiple times all files are in the right direction. but the non ascii char could cause the problem.

I had a similar problem before, is it possible to move the automatically created files to something like C:\xyz....

Jueruss
  • 1
  • 2

1 Answers1

0

Try Invalidating Caches. You will get this option in Android Studio Files -> Invalidate Cache/Restart.

Raziya Bhagat
  • 216
  • 2
  • 8