简体   繁体   English

无法在Ubuntu中的Android Studio中创建Android虚拟设备

[英]Cannot create Android Virtual Device in Android Studio in Ubuntu

At the end of setup of adding virtual device(after selecting the Device & android version,) when I click on finish. 当我单击完成时,在添加虚拟设备的设置结束时(选择设备和android版本之后)。 I see the following error in the console Find the error here 我在控制台中看到以下错误,请在此处查找错误

note that the problemis notdue to the spaces in the name of device, I have tried it, still did not work. 请注意,问题不是由于设备名称中的空格引起的,我已经尝试过了,但仍然无法正常工作。

NOTE : I am using Android studio in Ubuntu 16.04 LTS with KVM installed on a Dell laptop with 4xIntel Core i5-3337U CPU @1.80Ghz. 注:我正在Ubuntu 16.04 LTS中使用Android Studio,并在装有4xIntel Core i5-3337U CPU @ 1.80Ghz的Dell笔记本电脑上安装了KVM。

*.ini file will be created when you creating a emulator in android studio. 在Android Studio中创建模拟器时,将创建* .ini文件。 I think /.android/avd file location have not permission to create that file. 我认为/.android/avd文件位置没有创建该文件的权限。

So, 所以,

Apply permission to this folder. 将权限应用于此文件夹。 then create into New 然后创建到新

sudo chmod 777 .android

After that create it. 之后创建它。 It will working. 它将起作用。 :) :)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM