Skip to content Skip to sidebar Skip to footer

Java.lang.noclassdeffounderror: Android Compatability Issue In 2.2

For making my app compatible down to API 2.2, I added Android compatibility library appcompat_v7 & changed the necessary things according. The app is running fine in the newer

Solution 1:

getFragmentManager was only added in API11 (http://developer.android.com/reference/android/app/Fragment.html#getFragmentManager()) You should change the code to use getSupportFragmentManager(). You can find more information about the api of android-support-v4.jar here(http://developer.android.com/reference/android/support/v4/app/Fragment.html).

You need to use android-support-v4.jar to support fragments in android 2.2

Post a Comment for "Java.lang.noclassdeffounderror: Android Compatability Issue In 2.2"