I have a big big problem.
Yesterday I updated the Android SDK and, since then, I no longer run correctly my application on my device or emulator.
Eclipse does not have any kind of error, but when I start the application there are some errors such as:
03-26 14:06:58.900: E / AndroidRuntime (32593): java.lang.RuntimeException: Unable to start activity ComponentInfo com.example {}: android.view.InflateException: Binary XML file line # 7: Error inflating class com . viewpager.TitlePageIndicator
03-26 14:06:58.900: E / AndroidRuntime (32593): Caused by: android.view.InflateException: Binary XML file line # 7: Error inflating class com.viewpager.TitlePageIndicator
03-26 14:06:58.900: E / AndroidRuntime (32 593): Caused by: java.lang.ClassNotFoundException: com.viewpager.TitlePageIndicator in loader
How do I do? It ‘s very important for me to solve this error!
I also noticed that the apk is smaller than when the application worked.
I tried to uninstall everything (jdk, sdk, eclipse) and reinstall and today I tried also to format and reinstall windows.
Please Help!
This is a problem that occurs after the migration to ADT R17.
You can find a detailed memo from Xavier Ducrohet on Google+ :
https://plus.google.com/u/0/109385828142935151413/posts
Basic steps to solve this issue are :
Remove the libraries from the standard Java build path :
Right click on the project name > Properties > Java Build Path > tab Libraries > remove everything except the “Android X.X” (2.3.3 in my case) and the “Android Dependencies”
Rename the libraries folder from “lib” to “libs”
By doing that, all the libraries in the folder “libs” are found by the Android plugin and are added to the “Android Dependencies” item of the project
If you have references to jars that are not in the ‘libs’ folder, for example if you use ‘classpath variable’, you can resolve the NoClassDefFoundError issue with the new ADT 17 by exporting the references.
To export the references: simply go to “Properties > Java Build Path > Order and Export”, and check all the references you want exported.