• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

an error in android studio:Execution failed for task ':app:mergeDebugResources'.

 
Blue App
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi everybody i want to make an android app for controling bluetooth module hc-05,i have the following code in android studio:
MainActivity.java


activity_main.xml


AndroidManifest.xml


and when i select run i see this error:

it seems that coulde not make r.java file because R symbol in MainActivity.java file is red and says:cannot resolvs symbol R
please say me exactly what should i do,i am new in android programming ,i need your help!!!
 
Brian Tkatch
Bartender
Posts: 567
25
Linux Notepad Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh, that R error. Try File->Invalidate Caches/Restart or Rebuild the project. IIRC, that what fixed it for me.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic