do you guys know any tutorial on how to use one of the above frameworks in eclipse on windows? I've downloaded both of them and followed the instructions - but I still get errors in both cases. Frustratin.
Greendroid or ActionbarSherlock - setup
Asked Answered
Really can't help you unless you describe the kind of errors you're getting. Are you having trouble setting them up in your project, or using them to write code? –
Workout
I just tried these instructions on ActionBarSherlock, but I'm pretty sure the process was the same when I was using GreenDroid.
- Download the .zip/.tgz and extract it somewhere
- Go to eclipse and choose File->New->Project
- Choose Android Project
- Select Create project from existing source and then browse to the library folder inside the folder you just extracted the .zip/.tgz into
- Build Target should be 3.2 as of this time
- Finish the wizard, then right click on the newly created project and go to properties
- Under the Android heading, you should see a section for Library with a checkbox IsLibrary. Make sure that's checked.
- Now go to the properties for your Android project, then under the Android heading and the Library section choose Add...
- You should see the actionbarsherlock library, add this to your project
- Lastly, if you were using the compatibility support you need to delete that jar since it's included in ActionBarSherlock
Please note that ActionBarSherlock has undergone a lot of changes since I wrote these instructions. Please refer to the official website. actionbarsherlock.com/usage.html –
Latakia
I had errors on @Override
methods because I was using Java 1.5. Switching to 1.6 solved them.
To do this : right click on your project > Properties > Java Compiler > Enable project specific settings > Compiler compliance level > 1.6
It is related to this issue in the project's bug tracker : https://github.com/JakeWharton/ActionBarSherlock/issues/28
This isn't a actionbarsherlock(ABS) issue, I've seen the same @override error in projects not using ABS due to not compiling against java 1.6. –
Tug
© 2022 - 2024 — McMap. All rights reserved.