-
Notifications
You must be signed in to change notification settings - Fork 14
Android Setup guide for Netbeans and Eclipse
alex edited this page Nov 24, 2015
·
1 revision
Can be found here
- Clone the source into a folder
- Fire up Netbeans
- Install the nbandroid plugins
- Choose
File
>Open Project
- Navigate to your local Hydra repository
- Select
android
. It should have a yellow android-symbol in front of it - Select
Open project
- Repeat this for the following paths:
android/libs/facebook/facebook
android/libs/ActionBar-PullToRefresh/library
android/libs/ActionBarSherlock/actionbarsherlock
android/libs/google-play-services_lib
android/libs/StickyListHeaders/library
- Right click android and select
Clean and build
- Clone the source into a folder
- Fire up Eclipse
- Install the Android plugins
- Choose File > Import... > Existing Projects into Workspace
- Select root directory: local sources > android > libs
- Choose the ab-sherlock-2.0, FacebookSDK and StickyListHeaders_lib projects
- Click 'Open', the project gets imported
- Richt click on the project name, choose options, set build target to the highest Google API
- Click accept
- Choose File > Import... > Existing Projects into Workspace
- Navigate to the local sources
- Choose the android folder and click open
- Do the same for the Hydra project
- You should now be able to run the app
If you still get errors: check if the compiler compliance level is 1.6 (instead of the default 1.5): Righclick on the project > properties > java compiler > compiler compliance level. (This fixes the "should override supertype methode" + "implements method" error)
Furthermore, if the libraries are not found: rightclick > properties > Android > Java Build Paths > Projects (tab) > add > add all.