Reputation: 24233
I am trying to start a FragmentActivity
from a normal Activity
, and I get this java.lang.NoClassDefFoundError
in log, while the app crashes.
Should I change anything in manifest to be able to use a FragmentActivity
in my app?
Has anyone else come across this error? How did you fix it?
Upvotes: 3
Views: 3801
Reputation: 1
The android-support-v4
library contains a bug.
So, make a new project with android version 4.2.2. Copy the file which is android-support-v4.jar
, and paste in your project.
I solve the problem this way!
Upvotes: 0
Reputation: 961
The issue is noted here: FragmentActivity causing ClassNotFoundException
Please update the sdk tools. It should solve the problem.
Upvotes: 0
Reputation: 1952
Maybe is a stupid hint. But are you sure to have inserted the FragmentActivity into your Manifest file?
If so try to insert this into manifest:
<uses-sdk
android:minSdkVersion="4"
android:targetSdkVersion="8" />
Upvotes: 1