First experience of Baidu map sdk under android studio

Source: Internet
Author: User

First experience of Baidu map sdk under android studio

After obtaining sha1, go to the Baidu map sdk Resource Acquisition page;

1. Obtain the key and SDK;

1. Search Baidu map sdk;

2. Click get key;

3. Create an application;

4. Go to "related downloads" and "Development Guide" under the overview ";

Download the development kit and examples, and decompress the development kit;

2. Create a project;
1. After creating a project under Android studio (note that the package name must be consistent with the package name when the key is obtained), android switches to the project, copy the jar package in the decompressed libs folder to the app/libs folder, right-click the project/open module settins, and click "+" to select file dependencies to add dependencies;

2. Create the folder "jniLibs" under src/main, and copy all the folders in the libs folder after decompression;

3. Go to "Hello BaiduMap" under "Developer Guide" and follow the instructions;

4. Start running;

If you use genymotion to run the program, the Failure recovery (System Supporting 4.x) Compressed package will appear to support arm. The result is still not good;
However, if the built-in simulator avd is used for running, the operation will be slow;
You can only use a real machine for testing: <Strong? Http: www.bkjia.com kf ware vc "target =" _ blank "class =" keylink "> VcD4NCjxwPjxpbWcgYWx0PQ = "here write picture description" src = "http://www.bkjia.com/uploads/allimg/160331/042024F24-13.png" title = ""/>

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.