The first experience of Baidu Map SDK under Android Studio

Source: Internet
Author: User

How to get SHA1 by opening terminal in previous Android studio
Get to SHA1, the following began to enter the Baidu Map SDK Resource acquisition;

First, obtain the key and the SDK;

1, search Baidu Map SDK;

2, click to get the key;

3, create the application;

4, access to the overview of the "Related download" and "Development Guide";

Download the package and sample, unzip the development kit;

Second, the project creation;
1. After creating a new project under Android Studio (note that the package name is the same as the package name that gets the key above), have Android switch to project, copy the jar package under the extracted Libs folder to App/libs, right-click the Project/open module Settins, such as click "+" Select file dependencies add dependency;

2, in Src/main under the new folder "Jnilibs", will extract the folders under the Libs folder are copied into;

3, enter the "Development Guide" under the "Hello Baidumap", according to the instructions to operate;

4, start running;

Failure [Install_failed_no_matching_abis] error occurs when running with genymotion, because Genymotion does not support arm, I follow the online method to drag into the Genymotion-arm-translation.zip (Support 4.x system) compression package to support ARM, the result is still not working;
And the use of the self-simulator AVD run, the operation is very slow;
Finally, you can only use the real machine test:

The first experience of Baidu Map SDK under Android Studio

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.