Skip to content Skip to sidebar Skip to footer

"could Not Find Class 'android.support.v4.app.fragmentactivity'" Error

I'm getting the following error: > 02-06 23:10:24.104: E/dalvikvm(912): Could not find class > 'android.support.v4.app.FragmentActivity', referenced from method > com.robo

Solution 1:

If there is no "libs" folder then create one

then click

Project> Android Tools >Add support Library.

This will help you. Finally clean the project and restart Eclipse

Solution 2:

You need to add the support library com.android.support:support-v4

On Android Studio, go in the menu File > Project Structure (Ctrl + Alt + Shift + S) Select app, tab Dependecies, and in the + and search for the Maven libraries that you will use. In your case, the com.android.support:support-v4enter image description here

Solution 3:

Either create a "libs" folder and put the "android-support-v4.jar" file

else

import the " android-support-v4.jar" to Android Private Libraries folder, and restart the IDE to take effect.

Solution 4:

Please Perform these two steps: 1)It's better to create libs folder and add "android-support-v4.jar" and dont forget to check checkbox mentioning "system library " . 2) Copy "android-support-v4.jar" from "adt-bundle-linux-x86-20140702/sdk/extras/android/support/v4" folder to your "/home/vinny/workspace/appcompat_v7/libs" appcompat libs folder.You can add "android-support-v7-appcompat.jar" this jar also to this folder from "adt-bundle-linux-x86-20140702/sdk/extras/android/support/v7"

Note: Don't forget to perform this step, properties->Android->Library-> add

Post a Comment for ""could Not Find Class 'android.support.v4.app.fragmentactivity'" Error"