0

The setContentView(R.layout.webview) method is throwing ResourceNotFoundException when am trying to run the sample metaio sample app. I checked the folder structure, I deleted the R.java resource file and it got recreated.

The Project Structure : enter image description here

The resource generated file

enter image description here

The log error

enter image description here

The webview file is present.. Then why is it throwing the ResourceNotFoundException ? Any ideas?

gursahib.singh.sahni
  • 1,559
  • 3
  • 26
  • 51

3 Answers3

0

Clean Project and Rebuild project.

siahNaqab
  • 19
  • 2
0

Two things, 1) Clean Project and Rebuild as others have specified. 2) I've seen this before, are you sure that webview in the screenshot is a layout and not an id?

ajacian81
  • 7,419
  • 9
  • 51
  • 64
0

guys i did all the possible stuff

  • clean
  • refresh
  • build again
  • deleted R.java file
  • restart eclipse | restart windows
  • different version of eclipse

Nothing helped but when in the end i tried it on my desktop with Windows 7, it worked without any problems..

Earlier I was running on Windows 8.. Although I doubt that it was the windows problem but in the end am glad it worked.

gursahib.singh.sahni
  • 1,559
  • 3
  • 26
  • 51