Android Studio: You must specify a path to Genymotion folder to use this feature

南楼画角 提交于 2019-11-28 23:35:47

问题


I've downloaded and installed the Genymotion emulator plugin via the plugin wizard in Android Studio. I'm running Android Studio on a Windows machine.

I'm getting a warning saying that I must provide a path to Genymotion folder:

Where is this folder located? I can not seem to find it in my Android Studio installation folder.


回答1:


For windows, the default path is C:\Program Files\Genymobile\Genymotion

On a Mac, you will find it here: /Applications/Genymotion.app

You have to enter it inside the Android Studio settings, under Genymotion section.




回答2:


make sure you have installed genymotion and virtual box then provide the link to genymotion location in windows by default is C:/program files/genymobile/genymotion




回答3:


Not sure if anyone had the same problem but I received this same warning from Android Studio when clicking on the Genymotion Plugin warning me that

"You must specify a path to genymotion folder to use this feature"

The path was correct according to previous answers for a Mac but the problem was simply that the Genymotion plugin just needed to be updated. I went to Android Studio > Preferences > Plugins > Genymotion and selected update (This is on a mac) and the problem went away after I updated the plugin and restarted Android Studio. Hope this helps someone else with the same problem.




回答4:


If you are getting this error after clicking installed plugin then, its asking the path of your installed Genymotion. So please provide path where your Genymotion is installed.

In my case it was C:\Program Files\Genymobile\Genymotion




回答5:


What to do:

  1. Open Genymotion itself (the round & pink icon on your desktop).

    1. Choose the "Settings" option from the upper menu.

    2. Choose the option "ADB" from the upper menu.

  2. Select "Use Android custon SDK tools". Put the following path inside "Android SDK": C:\Program Files\Genymobile\Genymotion

    Why does it happen? you're getting the notice "You must specify a path to Genymotion folder to use this feature" because there's a bug in Genymotion working on Windows that misleads the Genymotion engine while trying to use the Android SDK.

Additional links:

Can't find Genymotion.app




回答6:


In Linux, the way to solve the issue is the re-run the command

sudo ./genymotion-x.x.x-linux_x64.bin

in the directory where your bin file is located. For instance, suppose that I download the Genymotion .bin file to install Genymotion, and it's in the Downloads folder. I can move it to my home folder and run the following commands to install it.

chmod +x genymotion-x.x.x-linux_x64.bin

sudo ./genymotion-x.x.x-linux_x64.bin

After running those commands, you may run into an issue where the genymotion folder needed to specify the path does not get created. If you try pressing CTRL + h in the directory where your .bin is located, you will find a hidden folder called .Genymobile. The Genymotion folder will be inside of that folder. Even if you were to specify the path to that folder as /home/<user>/.Genymobile/Genymotion, you would still get the error. If you re-run the command sudo ./genymotion-x.x.x-linux_x64.bin where your .bin file is located, it will create the genymotion folder, and you can specify the path as /home/<user>/genymotion if the .bin file is located in your home directory. Once you specify the path, you can press ok, and it should work.




回答7:


In case it helps, when I needed to add the Genymotion install dir to my $PATH environment variable on Mac OS X, I had to use the following path:

/Applications/Genymotion.app/Contents/MacOS




回答8:


Simply write

C:\Program Files\Genymobile\Genymotion

It is the default path for the GennyMotion unless you have installed it somewhere else.




回答9:


To install Genymotion plugin for Android Studio:

  1. In Android Studio, go to File/Settings (for Windows and Linux) or to Android Studio/Preferences (for Mac OS X)
  2. Select Plugins and click Browse Repositories.
  3. Right-click on Genymotion and click Download and install. To see Genymotion plugin icon, display the toolbar by clicking View > Toolbar.

To use this plugin, Genymotion must be installed on your system.

Or download and install manually the plugin genymotion-idea-plugin.jar (not recommended)

You have to give installed path of genymotion.

More Details You can Visit Official Genymotion Website.



来源:https://stackoverflow.com/questions/28252690/android-studio-you-must-specify-a-path-to-genymotion-folder-to-use-this-feature

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!