Baidu Map SDK Debug Sdkinitializer.initialize (Getapplicationcontext ()) error

Source: Internet
Author: User

First describe the cause of the problem, at the beginning of a Baidu Map SDK to write a demo to try the function, because the first use of the eclipse comes with the AVD to debug, everything is normal. Can be normal verification, but because of the repeated restart of the AVD equipment, decisive change genymotion This recent fire simulator to replace debugging, so the problem came.

For the understanding of genymotion, you self-degree niang, a lot of. Just a little bit of a problem at the time of installation, and then the table later.

The initial debugging of normal engineering code, the results change the simulator after the decisive, but because the middle in the installation of genymotion in the time of the problem, so a little doubt is the eclipse environment has been made a problem, helpless. can only be crazy. Finally, decisively re-installed eclipse, a lot of time wasted on this.

Finally installed, and then installed genymotion Eclipse plug-in, this time and the same as before, in the online installation of the moment stuck, not moving.

Is stuck in this always connected interface, finally found a long time after the discovery of a solution, is to put the following that contact all update sites during install to find required software this check off, the speed of the rapid walk, Soon the plug-in installation is complete. Because it is installed in the installation of this method, in addition to the installation of ADT Local installation will also have this stuck problem, and finally the disconnection network and then install the solution. In short after loading after the use of genymotion or very good, fast very smooth.

But soon another problem, is in the debugging Baidu map demo when Sdkinitializer.initialize (Getapplicationcontext ()); This sentence has been an error, regardless of change, Add androidmanifest.xml inside the Authority, Change Getapplicationcontext () for getapplication () and so on, and finally found a long time to find a reliable solution, The reason for this is that the simulator is missing the part of the ARM architecture support.

When we install genymotion, the console console will give an error when deploying the Android application to the above debug: installation Error:install_failed_cpu_abi_incompatible, This is because the system is missing Google Play market and other Google services applications, in fact, because of copyright issues, since the 2.0 version of the genymotion provided by the virtual device has been removed from Google Apps and ARM library support, so, If the VMS that are downloaded from the software are running some apps that have to rely on these components to run, there will be errors or flashbacks.

The solution is to download arm's support components directly onto the genymotion built-in virtual device, click OK to restart the normal debugging.

: http://download.csdn.net/detail/zhanghaofor/8765301

Two images, so you can debug them properly.

Baidu Map SDK Debug Sdkinitializer.initialize (Getapplicationcontext ()) error

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.