-
Notifications
You must be signed in to change notification settings - Fork 1
Cloning Instructions
Things needed:
- JDK (tested with openjdk)
- Eclipse (tested with Luna) OR Android Studio: Instructions to import using Android Studio
- Android SDK
- Eclipse Android Plugin
- Android SDK Packages for the target Android SDK Version.
- Google Play Services
- Google Maps API Key Instructions to import using Android Studio
Open the Android SDK Manager:
Install the Android API, at the time of writing: Android 5.0(API 21).
Check Android API Level in
AndroidManifest.xml,
loook for:
<uses-sdk android:minSdkVersion="X" android:targetSdkVersion="Y" />
The targetSdkVersion will be used in the build process. That's the one you need to have.
Make sure to select the whole folder of the API Level Required.
You also need the Google Play Services Lib which you will find under extras.
Instructions to import using Android Studio
Android's website instructions
In eclipse:
File->Import...->Android/Existing Android Code Project Into Workspace->Browse...
find YourAndroidSDKlocation/sdk/extras/google/google_play_services/libproject/google-play-services_lib/
Select All->mark Copy projects into workspace->Finish
You should now see google-play-services_lib in your package explorer as a new project.
You need to setup your own Google Maps API Key.
How to setup account
The SHA-1 Fingerprint can be found in Eclipse:
Window->Preferences->Android/Build
Or with command:
keytool -list -v -keystore ~/.android/debug.keystore
if you haven't set a password, hit enter.
The package is pt.lsts.asa
After you generate your Google Maps API Key, copy it and paste on
res/values/strings.xml,
look for:
<string name="gmapsApiKey">YourGoogleMapsAPIKeyHERE</string>
Project->Clean...->Clean All Projects->OK