I tried the same thing in Eclipse, and I saw on Most every file, there was a failed import:
import android.support.v4.app.DialogFragment;
import android.support.v4.app.FragmentActivity;
So, what I did to fix it, was:
- Right click on your project ("Support4Demos") in the navigation menu on the left.
- Click 'Properties'.
- Click 'Java Build Path' on the left hand navigation pane.
- Click 'Add External Jars' button on the right.
- Navigate to: "\android-sdk\extras\android\compatibility\v4"
- Choose "android-support-v4.jar", then click 'Open', then click 'Ok'.
- Left Click on your Project ("Support4Demos").
- Click 'Project' at the top, then click 'Clean', then click 'Ok'.
The last two steps might not be needed. But when you do all this, it may fix it. You would also need to fix any error in the XML file.
EDIT:
Try this:
- Right click on your project and choose "properties"
- Choose 'Android'.
- Make sure it's set on Android 3.2 or higher.
Android 3.2 was when the Holo theme was introduced.