AVD Nexus_One_API_27的仿真器进程被终止;模拟器:错误:检测到挂起线程' Qt事件循环'。

时间:2018-01-21 13:29:22

标签: android android-emulator

启动模拟器时我收到错误 - >等待设备时出错:AVD Nexus_One_API_27的模拟器进程被终止。我发现在目录/ Android / Sdk / system-images / android-27 / google_apis / x86; build.prop和system.img以及其他文件都在那里。我做了vi .android / avd / Nexus_One_API_27.avd / config.ini。在那个image.sysdir.1 = system-images / android-27 / google_apis / x86 /。所以,我检查了那里的文件。

我已经输出了ANDROID_SDK_ROOT =' / root / Android / Sdk'在命令提示符下。 但我得到了同样的错误

我得到的其他错误是 - > 6:46 PM模拟器:警告:未知的AVD名称

[Nexus_One_API_27], use -list-avds to see valid list.

6:46 PM Emulator: HOME is defined but there is no file Nexus_One_API_27.ini in $HOME/.android/avd

6:46 PM Emulator: (Note: Directories are searched in the order $ANDROID_AVD_HOME, $ANDROID_SDK_HOME/avd and $HOME/.android/avd)

6:46 PM Emulator: WARNING: Unknown AVD name [Nexus_One_API_27], use -list-avds to see valid list.

6:46 PM Emulator: HOME is defined but there is no file Nexus_One_API_27.ini in $HOME/.android/avd

6:46 PM Emulator: (Note: Directories are searched in the order $ANDROID_AVD_HOME, $ANDROID_SDK_HOME/avd and $HOME/.android/avd)

6:46 PM Emulator: WARNING: Unknown AVD name [Nexus_One_API_27], use -list-avds to see valid list.

6:46 PM Emulator: HOME is defined but there is no file Nexus_One_API_27.ini in $HOME/.android/avd

6:46 PM Emulator: (Note: Directories are searched in the order $ANDROID_AVD_HOME, $ANDROID_SDK_HOME/avd and $HOME/.android/avd)

6:46 PM Emulator: PANIC: Cannot find AVD system path. Please define ANDROID_SDK_ROOT

6:46 PM Emulator: Process finished with exit code 1

我该怎么做才能让模拟器运行?

我安装了2android工作室 - 一个在家中,一个在root中。 / home / sandip中的那个不工作。 当我回显$ HOME时,它在一个终端显示/ home / Sandip,在我使用sudo的其他终端显示/ root。我目前正在运行以root身份安装的工作室; /root/.android/avd有Nexus_One_API_27.ini文件

我修复了其他安装,这些是启动模拟器时出现的错误

5:40 PM Emulator: libGL error: unable to load driver: i965_dri.so

5:40 PM Emulator: libGL error: driver pointer missing

5:40 PM Emulator: libGL error: failed to load driver: i965

5:41 PM Emulator: libGL error: unable to load driver: swrast_dri.so

5:41 PM Emulator: libGL error: failed to load driver: swrast

5:41 PM Emulator: X Error of failed request:  BadValue (integer parameter out of range for operation)

5:41 PM Emulator: Major opcode of failed request:  152 (GLX)

5:41 PM Emulator: Minor opcode of failed request:  24 (X_GLXCreateNewContext)

5:41 PM Emulator: Value in failed request:  0x0

5:41 PM Emulator: Serial number of failed request:  56

5:41 PM Emulator: Current serial number in output stream:  57

5:41 PM Emulator: emulator: ERROR: Missing initial data partition file: /home/sandip/.android/avd/Nexus_5X_API_27.avd/userdata.img

5:41 PM Emulator: Process finished with exit code 1

我尝试了以下内容。现在模拟器启动但挂起 它安装在/ home / Sandip /而不是/ root /

如果没有系统lib64stdc ++ 6和mesa-utils

,首先必须安装以下软件包

sudo apt-get install lib64stdc ++ 6 mesa-utils

然后将库符号链接到android sdk工具路径

  1. 对于/ Sdk / tools路径

    cd ~/Android/Sdk/tools/lib64/libstdc++
    if thisdirectory is not there create it.
    # making a copy of the file
    sudo mv libstdc++.so.6 libstdc++.so.6.og
    # symlink
    sudo ln -s /usr/lib64/libstdc++.so.6 ~/Android/Sdk/tools/lib64/libstdc++
    
    ## For the /Sdk/emulator path
    
    cd ~/Android/Sdk/emulator/lib64/libstdc++
    # making a copy of the file
    sudo mv libstdc++.so.6 libstdc++.so.6.og 
    # symlink
    sudo ln -s /usr/lib64/libstdc++.so.6 ~/Android/Sdk/emulator/lib64/libstdc++
    
  2. 然后启动了模拟器,但没有启动应用程序。

    转到sdk管理器,在SDK平台下选择API Level 15,即Android 4.0.3(IcecreamSandwich)

    但这导致我的模拟器GUI挂起 错误是 android模拟器:模拟器:错误:检测到挂起线程' Qt事件循环'。没有响应15150 ms

0 个答案:

没有答案