0

I update SDK to 22.0.1 and did related ADT updates. After updates my successfully running code has broken down with following error in finding xml resource-

unable to resolve static field 1108 (layout_name) in pkgname/R$layout
.
.
.
some error log....
.
.
.
java.lang.NoClassDefFoundError: pkgname.R$layout 

Please tell me what can be the reason of this error and how can I resolve it?

aaaaa
  • 449
  • 1
  • 5
  • 18

1 Answers1

0

Since you have updated the ADT, there might be the case that the references have been corrupted.

Try removing all external jars from the project(If any). You can add them back in after it's been cleaned.

Also check whether external libraries are placed in /libs folder or not.

Clean the project and check the build path. If it doesn't work, you must reStart your Eclipse and then check the project.properties file. It will help.

Thanks!

  • Tried removing all external jars, cleaning, then adding jars. It's not working. Please tell me how the project.properties file can help resolving this problem? – aaaaa Jul 23 '13 at 13:37
  • Hi Astha, Please try to recreate the project and copy all the files and resources in the concerned folders. If It works then It might be the issue due to updates. If not, then you must check for updates again. These kind of issues are common whenever a developer updates the plugins. Thanks! –  Jul 24 '13 at 02:13
  • I did this too. Didn't help. – aaaaa Jul 24 '13 at 10:48