AVD未启动(无错误消息)

时间:2021-08-20 20:51:17

I know that this was running on my system half a year ago, so I don't know what else to do.

我知道这在我的系统上运行了半年,所以我不知道还能做什么。

I deleted every Android-related cofig-folders in my home directory. The newly generated config files are located in my home directory as well.

我删除了我的主目录中所有与android相关的cofigr文件夹。新生成的配置文件也位于我的主目录中。

I'm starting Android Studio with an empty project (just created it new), click on "AVD Manager", install a Nexus6 with Nougat x86 (API Level 25) and then I'm hitting the "Launch this AVD in the emulator"-button.

我用一个空项目启动Android Studio(刚刚创建了一个新项目),单击“AVD Manager”,使用Nougat x86 (API级别25)安装Nexus6,然后点击“在模拟器中启动这个AVD”按钮。

At the bottom of Android-Studio a progress bar appears along with "Starting AVD...", but as the progress bar hits 100% nothing else happens. No error message, no process being started, simply nothing happens after hitting that button.

在Android-Studio的底部会出现一个进度条和“开始AVD…”,但是当进度条达到100%时,就不会发生其他事情。没有错误消息,没有进程被启动,仅仅是点击那个按钮后什么都没有发生。

I installed the package from the AUR https://aur.archlinux.org/packages/android-studio. I'm using LXDE as the DE.

我从AUR https://aur.archlinux.org/packages/android-studio安装了这个包。我用LXDE作为DE。

6 个解决方案

#1


10  

After the last update my emulator stopped working without throwing any error. I had to edit my .bashrc to set it to use the system libraries.

在最后一次更新之后,我的模拟器停止工作而不抛出任何错误。我必须编辑我的.bashrc才能将其设置为使用系统库。

Open your .bashrc file by typing the following commands on terminal:

在终端输入以下命令,打开。bashrc文件:

cd ~/
gedit .bashrc

Add this line to the end of the fine:

在罚款的末尾加上这句话:

export ANDROID_EMULATOR_USE_SYSTEM_LIBS=1

Restart the computer.

重新启动计算机。

Edit: Instead of restarting you can also run source ~/.bashrc

编辑:您可以运行source ~/.bashrc而不是重新启动

#2


8  

Looks like android studio needed to install emulator when it was updated... I got this problem after updating android studio and it was solved by the installing the emulator from SDK manager

看起来android studio在更新时需要安装仿真器……我在更新android studio后遇到了这个问题,通过SDK管理器的安装解决了这个问题

#3


4  

Android emulator was not updated in my Android Studio. I went to SDK manager and installed the updated version from tools tab and then it started working.

Android模拟器在我的Android Studio中没有更新。我去了SDK管理器,安装了来自tools选项卡的更新版本,然后它开始工作。

#4


0  

I went to Tools > Android > AVD Manager

我去了工具> Android > AVD Manager

I then edited the desired device [galaxy_note_4] in my case, Selected Software - GLES 2.0, under Emulated Performance.

然后我在我的案例中编辑了所需的设备[galaxy note_4],在模拟的性能下选择了GLES 2.0软件。

Worked for me, hope this helps

为我工作,希望这有帮助。

#5


0  

I went to AVD manager and cleared out my existing devices and just created a new one. Seemed to do the trick for me.

我去了AVD manager,清除了现有的设备,创建了一个新的。似乎对我起了作用。

#6


0  

Just delete your avd and try to create a new one then you can see the error logs in idea.log. In my case it couldn't find userdata.img for some reasons.

只要删除avd并尝试创建一个新的,就可以看到idea.log中的错误日志。在我的例子中,它找不到用户数据。img一些原因。

#1


10  

After the last update my emulator stopped working without throwing any error. I had to edit my .bashrc to set it to use the system libraries.

在最后一次更新之后,我的模拟器停止工作而不抛出任何错误。我必须编辑我的.bashrc才能将其设置为使用系统库。

Open your .bashrc file by typing the following commands on terminal:

在终端输入以下命令,打开。bashrc文件:

cd ~/
gedit .bashrc

Add this line to the end of the fine:

在罚款的末尾加上这句话:

export ANDROID_EMULATOR_USE_SYSTEM_LIBS=1

Restart the computer.

重新启动计算机。

Edit: Instead of restarting you can also run source ~/.bashrc

编辑:您可以运行source ~/.bashrc而不是重新启动

#2


8  

Looks like android studio needed to install emulator when it was updated... I got this problem after updating android studio and it was solved by the installing the emulator from SDK manager

看起来android studio在更新时需要安装仿真器……我在更新android studio后遇到了这个问题,通过SDK管理器的安装解决了这个问题

#3


4  

Android emulator was not updated in my Android Studio. I went to SDK manager and installed the updated version from tools tab and then it started working.

Android模拟器在我的Android Studio中没有更新。我去了SDK管理器,安装了来自tools选项卡的更新版本,然后它开始工作。

#4


0  

I went to Tools > Android > AVD Manager

我去了工具> Android > AVD Manager

I then edited the desired device [galaxy_note_4] in my case, Selected Software - GLES 2.0, under Emulated Performance.

然后我在我的案例中编辑了所需的设备[galaxy note_4],在模拟的性能下选择了GLES 2.0软件。

Worked for me, hope this helps

为我工作,希望这有帮助。

#5


0  

I went to AVD manager and cleared out my existing devices and just created a new one. Seemed to do the trick for me.

我去了AVD manager,清除了现有的设备,创建了一个新的。似乎对我起了作用。

#6


0  

Just delete your avd and try to create a new one then you can see the error logs in idea.log. In my case it couldn't find userdata.img for some reasons.

只要删除avd并尝试创建一个新的,就可以看到idea.log中的错误日志。在我的例子中,它找不到用户数据。img一些原因。