Actionbaractivity - Noclassdeffounderror Exception
Solution 1:
Try this:
Import support library as a project from
"sdk/extras/android/support/v7/appcompat"
.Reference library in your project (for Eclipse,
"Properties - Android - Add"
).- Build projects (for Eclipse,
"Projects - Build All"
). Make sure, you have"android.support.v7.appcompat"
in your main project gen folder.
If it still doesn't solve your problem, restart eclipse.
then clean and rebuild project
If the problem persists, remove the support library from you computer and redownload it and follow above mentioned steps.
Solution 2:
Get the latest versions.
Caution: Be certain you import the ActionBar class (and related APIs) from the appropriate package:
If supporting API levels lower than 11: import android.support.v7.app.ActionBar and use getSupportActionBar()
If supporting only API level 11 and higher: import android.app.ActionBar and use getActionBar()
from Google ActionBar
Solution 3:
I had not the same cause as yours, but it might help someone else.
In ADT base on eclipse, with each new Android project generate is new directory appcompat_v7. I delete duplicates directories (appcompat_7_2, etc..), because all of them using the same versions od SDK.
Then in project.properties path to android.library.reference.1 provide path to non-existing directory.
Answer :
Go to Project properties -> Android -> choose right appcompat_vX directory and delete previouse one.
Post a Comment for "Actionbaractivity - Noclassdeffounderror Exception"