Reputation: 2679
I have imported appcompat-v7 following this instruction to both Eclipse(Luna) and Android Developer Tools.
https://developer.android.com/tools/support-library/setup.html
Now my appcompat-v7 library looks something like this in project explorer.
After importing this I have created a new project and added appcompat-v7 library with it.
But after clicking ok if I again go to that option it looks different.
If I put the following code to styles.xml it shows error.
<style name="AppBaseTheme" parent="Theme.AppCompat">
</style>
Now, what should I do to develop material design app using eclipse. Can anyone give me complete guideline to develop material app using eclipse?
NB: I have installed support library and I have api 21, 22 both.
Upvotes: 1
Views: 1237
Reputation: 7956
I also faced this problem and solved it by placing app compact v7 library folder and project in same directory. go to property and check that your library and appcompact is in same directory. You can follow this tutorial for solving this problem.
https://www.youtube.com/watch?v=CG_HxvV44zM
Upvotes: 0
Reputation: 93
Simple Solution is make shore both library and project is in same workspace means check on copy project in workspace during import library. Hope this solve your problem because it solve mine.Thanks
Upvotes: 1
Reputation: 2467
Just now I faced the same issue. I solved it using below steps. Hope it helps you.
Remove appcompat-v7
lib from your project property which is showing error.
Now right click on the appcompat-v7
lib. Go to Property. Make sure "is library" option is checked.
Clean all projects.
Now right click on your project. Go to property and add appcompat-v7
again. In my project appcompat-v7
build target was 21 so I change project build target to 21.
Clean all projects and restart eclipse.
Upvotes: 1