NoClassDefFoundError: Failed resolution of: Landroid/support/v7/appcompat/R$styleable
I get this error when trying to execute an Android app on a Genymotion VM simulator at API level 25
That class is not directly referenced by my code. There are classes in the android-support-v7-appcompat.jar that do.
The class is documented in the Android docs:
Where is the definition of the R class when I execute my app? I expect the Android system to provide it.
Do I need to provide a jar file in the libs folder that has the R.class?
Note: I am using Eclipse, not Android Studio because AS does not run very well on my older/smaller/slower PC.
I have done lots of searches online and downloaded lots of jar files searching for a solution. No luck so far.
I have a tool to search jar files for classes and to search a selected class for all the references it makes and report on if the referenced classes are available on its classpath.
The R.java file is created by a development tool. Was it used to create the R class I'm having problems with?
Did the developer of the android.support.v7.appcompat package use a tool to create the R class? If so, where is it?
Adam Wentz wrote:Which version of Android are you targeting in your project?
The "Landroid" portion of the failed resolution suggests you might be targeting a beta version. Is that so?
As you were, L Android was the codename used for Android Lollipop. Apart from that correction, which version of Android are you targeting?
Pete Letkeman has helped me with this problem. We PM'ed
My current opinion is that trying to set the libraries manually is not working, so I have put the project on hold for a while.
Thanks for trying to help.
PS. This is the code that you posted a link to.