Combined use of the Android-studio+genymotion simulator

Source: Internet
Author: User

(1) about how to install Android Studio:

After installation, download the individual SDK packages from the above URLs (also available for download in Android-studio SDK Manager, but often by the wall), the basic development environment is good.

Of course, if you want to use a little better, or simply configure it, such as the following two:

Shortcut settings (multiple environments can be selected, also customizable):


Source Code Control:


(2) on the installation of Genymotion method also no longer say, if there is a problem, please refer to: http://blog.csdn.net/xlgen157387/article/details/42026785

(3) prevention in the unlikely event, you can download a genymotion-arm-translation.zipto ensure that all APK can be installed successfully. Installation mode: After the simulator starts, the compress package drags in, the point "OK" on the line.

(4)

The combination of both, Android-studio installed Genymotion plug-in, there are two ways:

Method One: Open Android-studio, open "File"-"Setting"-"Plugins", right click "Browse repositories", enter genymotion in the popup search box, find and install the plugin (due to the current inability to access Google, one way is to turn over the wall, about the use of the wall, please refer to: http://blog.csdn.net/xlgen157387/article/details/41930697)


In some cases, the following options will pop up after a reboot: Just find the location where the genymotion is installed


Method Two: Genymotion official download the installation package on the page there is an idea Plugins East, download, repeat the above "open Android-studio, open" File "-" Setting "-" IDE Settings "-" Plugins " ", click" Install Plugin from disk "on the right.

After restarting Android-studio, find an icon on the toolbar and click it to configure the installation path to genymotion for the first time.

This allows you to select the emulation device each time you start


The rest is just like conventional development. You can also see whether the connection is correct in the DBMS:


(5) problems that may exist.

1) Android-studio If the simulation encountered failure [INSTALL_FAILED_OLDER_SDK] problem, because the compiler version of the SDK is too high, or the minimum requirements of the SDK is too high, online a bunch of said in the Mainfest < USES-SDK android:minsdkversion= "3"/> lowered or commented out, but mainfest no this line, in fact, just open the following path to find the Build.gradle file open

Edit the inside of the minsdkversion and targetsdkversion, ensure that the inside version is not higher than the simulator can be.


2) Android-studio Introduction of so File

Due to some circumstances, to introduce so files, such as Baidu Map, so file in the Libs directory, android-studio default is not automatically added, the online method is more complex, in fact, simple can be achieved, because it supports JNILIBS, So just add the files under the Jnilibs folder (no create, res sibling).


3) genymotion input Chinese question

In the device, tick the "Use virtual keyboard" on it.


The first use of Chinese, in the input keyboard area, with the mouse long press the space bar, in the pop-up box select "Google Input Method", in the lower left corner will be able to switch freely in English


Combined use of the Android-studio+genymotion simulator

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.