Android studio подключить genymotion

How to Install Genymotion Emulator and Add it’s Plugin to Android Studio?

Genymotion is an Android Emulator that is faster than the Android Studio Emulator. Genymotion emulator offers a wide range of virtual devices for development, test, and demonstration purpose. It has a very simple user interface and one can directly use it from Android Studio by installing its plugin only once. The Genymotion plugin for Android Studio allows testing the application developed with the Android Studio IDE. It uses ADB to connect to any active virtual device and push the application. So in this article let’s discuss how to install the Genymotion Emulator and also installing its plugin in the Android Studio to run the program.

Step by Step Implementation

Step 1: First we have to install Genymotion in our own system. So to download Genymotion please go to this site. Then click on the “Download Genymotion Personal Edition” button.

Note: Please sign in yourself to Genymotion if you have already not an account on Genymotion.

Step 2: In the next step click on the button as your requirement. If you have already installed VirtualBox on your system then go for the 2nd button and if not then go for the 1st button as shown in the below image. If you are using macOS or Linux then scroll below on that page and get your file.

Step 3: Once the download is completed install the Genymotion in your system and open Genymotion. After opening Genymotion sign in yourself with your ID and password.

Note: If a pop-up will arise on the screen then click on the Personal Use button.

Step 4: Now click on the Genymotion and go to the Settings as shown in the below image.

Step 5: Then go to ADB and choose “Use custom Android SDK tools” and select your Android SDK path as shown in the below image. And there is nothing to do with other widgets. Now close this screen.

How to know the Android SDK path in your system?

To know the Android SDK path open your Android Studio and click on the Tools > SDK Manager as shown in the below image.

Then a screen will arise as in the below image and you can locate your Android SDK path.

Step 6: Now click on the ‘pink +‘ screen as shown in the below image.

Step 7: Now search your favorite virtual device name and click on the device name and at last click on the NEXT button as shown in the below image.

Читайте также:  Простой календарь для android

Step 8: Choose an appropriate name for your emulator and then click on the INSTALL button. This will take a few times to download the required files.

Step 9: After successfully downloaded the required files you can find your emulator on the main screen. Now click on the Start button as shown below image and your Genymotion emulator is ready for use.

This is how Genymotion Emulator looks like.

How to add Genymotion Plugin to Android Studio?

In computing, a plug-in is a software component that adds a specific feature to an existing computer program. When a program supports plug-ins, it enables customization.

Similarly, we have to add the Genymotion plug-in to Android studio to use the Genymotion Emulator for developing and testing the project. To do so follow the following steps:

Step 1: Open the Android Studio and go to File > Settings and a pop-up will arise as seen in the below image. This will automatically select the Plugins section. Then search the Genymotion plugins and click on the Install button. This will download some files and it will ask to restart the Android studio and so click on the Restart Android Studio button.

Note: We have already installed the Genymotion plugin so it’s showing installed.

Step 2: After successfully restart the Android Studion again go to File > Settings > Other Settings > Genymotion as shown in the below image.

Step 3: Then select the path to the Genymotion folder. In most cases, you can find the path at C:\Program Files\Genymobile\Genymotion. Then just click on OK and you are done.

Make sure your Genymotion Emulator is started and you can see the Genymotin Emulator is active you can execute your program on that emulator as shown in the below image.

Источник

AwesomeDevelop

Лёгкая техносферная обстановка в душевой Google 8)

Самый быстрый эмулятор Android. Установка и настройка Genymotion.

Если вы только начинаете или собираетесь начать разрабатывать приложения для OS Android, вам следует обратить внимание на этот скоростной эмулятор.

Не секрет, что устройства под этой операционной системой имеют огромную фрагментацию, существует огромнейшее количество устройств с различными размерами экрана, разрешениями экрана, различной комплектацией и производительности. Поэтому при разработке приложений возникает необходимость тестировать приложение на различных устройства. Естественно у вас не может оказаться под рукой такого количества различных устройств для теста и тогда на спасение приходят эмуляторы. Стандартный эмулятор, который включен в комплект SDK, мягко говоря далек от совершенства, работа с ним, даже в виде одного устройства, вызывает непередаваемо огромное количество эмоций и все они ,к сожалению, негативны. Ожидание запуска в несколько минут (в лучшем случае минут 3-5), ожидание отклика при нажатии любого элемента, заторможенность, все это делают его непригодным для работы.

Установка Genymotion.

Для начала установки данного эмулятора вам следует перейти на его официальный сайт и зарегистрироваться. Регистрация необходима не только для его загрузки, но и для использования, так как он включает в себя облачную технологию и будет сохранять ваши параметры.

После регистрации качаем сам Genymotion перейдя на страницу загрузки или выбрав соответствующий пункт меню на сайте. Далее вбираем репозиторий для вашей операционной системы. Если у вас ранее не был установлен VirtulBox – не переживайте, он будет загружен и установлен вместе с эмулятором.

Читайте также:  Азбука веры для андроид

После загрузки репозитория приступаем к его установке. В процессе установки проблем возникнуть не должно, все сведется к соглашению со всем и нажатием кнопки “далее”, единственным непривычным моментом может стать появление окна безопасности, в котором необходимо разрешить устанавливать продукты Oracle.

После полной установки, запускаем Genymotion и входим под логином и паролем, которые регистрировали на сайте.

Как только вход в систему будет выполнен, появится возможность добавлять новые устройства, этими виртуальными устройствами вы и будете пользоваться в дальнейшем. Для добавления выбираем нужное устройство и нажимаем кнопку “Add”.

Настройка Genymotion.

Для корректного взаимодействия эмулятора и вашей среды разработки (Eclipse или AndroidStudio) необходимо указать путь к Android SDK. Для этого открываем настройки указанные на следующем скриншоте.

В появившихся настройках указываем путь и нажимаем “OK”.

Интеграция Genymotion в Eclipse.

Открываем вашу среду разработки Eclipse. В нем необходимо добавить плагин для работы с эмулятором. Для этого нажимаем на пункт меню “Help” и выбираем подпункт “Install New Softawe”.

В открывшемся окне нажимаем “Add” , после чего откроется окно, в котором необходимо указать путь к плагину, вводим следующий адрес http://plugins.genymotion.com/eclipse .

После подготовки и загрузки плагина, выбираем его из списка, жмем “Next” и проходим стандартную процедуру установки, соглашаясь со всем и нажимая далее.

После установки плагина, на панели управления появится его иконка , нажав на которую будет предложено его настроить.

После выполненных действий, эмулятор будет интегрирован и готов к работе, для его использования компилируйте и запускайте свой проект, выбрав для запуска запущенное заранее виртуальное устройство.

Интеграция Genymotion в AndroidStudio.

Для интеграции с появившейся недавно AndroidStudio, необходимо загрузить Jar файл плагина. Его можно скачать на официальном сайте Genymotion. Для загрузки выбираем плагин отмеченный на следующем скриншоте.

Открываем AndroidStudio, выбираем пункт меню “File” и кликаем на подменю “Settings”.

В открывшемся окне выбираем из списка пункт “plugins”, нажимаем кнопку “install from disk” и указываем путь к скачанному ранее .jar файлу.

Плагин установлен и готов к использованию. Теперь как и обычно можно компилировать проект и запускать его в предварительно запущенном эмуляторе.

Данный эмулятор Android не без изъяна и изредка может закрыться, но его двухсекундный перезапуск раз в полчаса никак не сравнится с теми тормозами, с которыми приходится работать с стандартным эмулятором. Потому на сегодняшний день Genymotion можно считать лучшим и самым эффективным инструментом при разработке андроид приложений.

Источник

How to Setup Genymotion Emulator with Android Studio

What is Genymotion Emulator?

Genymotion emulator is one of the most used Android Studio plugins where you can deploy and test your mobile apps. Here, we have brought a step by step tutorial to download, setup, and use Genymotion with Android Studio.

For your note, there is also a native emulator that you get as default with the Android Studio. But it is quite slow and lags far behind than functioning as a real mobile device. Also, there is no emulator which can completely replace an actual device. But Genymotion is picking up as the best and closest choice of Android developers/testers when it comes to comparing the emulators.

Читайте также:  Персы для террария андроид

Download Genymotion Setup.

First of all, you need to download the Genymotion setup. Click on the below link to get the installer package.

Installation.

Once the download finishes, then use the steps given below to install the Android emulator.

  • Start the installation process by running the downloaded package.
  • Leave all the settings as is, continue to next steps and click on install.
  • You’ll see Virtual Box installation in between. In the last step, select to launch Genymotion.

Configuration.

After the above steps, you will find the Genymotion screen coming up.

  • The first dialogue box which will appear, ask you to add the first virtual device. Click yes.
  • You will find that no virtual devices are available.
    • It’ll need you to sign in.
    • Now various virtual devices will list.
  • Select one of the devices from the open list.
    • Click next to retrieve and deploy the new virtual device.
    • It’ll take few seconds to complete, then click to finish.
  • The virtual device should now be visible in the Genymotion Manager.
  • If you can see it, then select the device and click to start.

Setup Genymotion Emulator with Android Studio.

It’ll now take a few more steps to add the Genymotion emulator plugin with Android Studio.

Add Genymotion Emulator to Android Studio.

  • Run Android Studio and go to Files menu. Then, select the settings option.
  • Out of several options displayed, choose Plugin. You’ll see a button with labeled as Browse Repositories.
  • Search for the Genymotion emulator to add it to Android Studio.
  • Right click on the plugin package and Click Download and Install.
    • Click Yes for the message to confirm this Installation.
    • You should now see the Genymotion option under Plugins.
  • Press the Apply button displaying on the screen.
  • Now look for the Restart option in the Android Studio window.
  • Click restart and wait for the studio to start and activate the changes.

Use Genymotion to Launch Virtual Device.

After Android Studio is up again, look for a Genymotion icon inside the menu bar.

  • Click on the plugin icon.
  • Set the path to the Genymotion installation.
  • Now your Genymotion emulator should be ready to use.
  • Complete the process and click the Genymotion icon.
  • Following dialogue box will appear on the screen.

  • Select one of the available devices and click on Start button.
  • Following Genymotion screen running the virtual device will now appear.
  • It is the target device where you can perform testing of your Android Apps.

Summary – Genymotion Emulator.

Not all of us, especially those who are beginners won’t be willing to spare a real device to test the Android apps. Also, we shouldn’t use our personal phone for testing as it may cause data loss.

But with Genymotion, it is easy to test and even debug any Android application. So all of you reading this post must give it a try.

We wish this blog post would have given you a few points to start. However, if you have any query, then please comment and let us know.

Источник

Оцените статью