• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!!!
 
Bartender
Posts: 598
26
Oracle Notepad Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic