Posted in tools with : android
Contents:
The following suggestions are all based on Windows. It should be similar on Mac.
Reference Google document from here and here.
For Eclipse, open Androidmanifast.xml and the package name is:
For Android Studio, TODO
For Eclipse, go to Windows -> Preferences -> Android -> Build to find it.
For Android Studio, go to your java(jdk) bin directory, and run:
keytool -list -v -keystore c:\users\<your_user_name>\.android\debug.keystore -alias androiddebugkey -storepass android -keypass android
You will get your SHA1 fingerprint from:
With your package name and SHA1 fingerprint, now we can generate your key.
If you want to use an existing key, open the key, and click add package name and fingerprint, and then fill your package name and fingerprint.
For Eclipse, in AndroidManifest.xml
, add the following element as a child of the <application>
element. Take the following as an example:
For Android Studio, in res/values/google_maps_api.xml, add your Android API key as the value of google_maps_key
element.
Genymotion is a Virtual Android Environment built on x86 and Virtualbox. It’s not an ARM emulator so it’s performance is better than the Android SDK Emulator. However in their latest update they’ve removed both ARM Translation and Google Play Apps.
Sometimes, We need the above two functions for genymotion VM. For example, to run map type apps needs Google play service.
In order to install ARM translation for Genymotion, follow these steps:
Genymotion can now run applications that require ARM emulation.
It is similar for Google Play Apps, which can be downloaded from here
Go to How to install Google Play Services in a Genymotion VM (with no drag and drop support)? for details.
At last, Remenber to make sure that your device can connect to google server, especially when you are in China.