"Go" FAQs about simulator emulation in Android development

Source: Internet
Author: User
Tags netspeed

"Go" FAQs about simulator emulation in Android development

Trouble:
Unable to start Android emulator, prompt XDm authorization key matches an existing client! SDL init failure, reason is:no available video device
Oneway:
Open the computer's Terminal terminal, the current GUI user's identity to execute the command xhost localhost , if you want to implement this command automatically after login, you can do the following operation Point Open Applicantions Menu, Settings, Session and startup Click Application Autostart in the Open option and then click the Add button at the bottom left to set the value of name to: Xhost The value of the localhost setting description is: xhost localhost set command value is: xhost localhost Click OK, click Close, you can
Trouble:
Unable to start Android emulator, prompt emulator:ERROR:x86 emulation currently requires hardware acceleration! Ensure KVM is properly installed and usable. CPU Acceleration status:this user doesn ' t has permissions to use KVM (/DEV/KVM). or hint emulator:ERROR:x86 emulation Curre ntly requires hardware acceleration! Ensure KVM is properly installed and usable. CPU acceleration status:could not OPEN/DEV/KVM:P Ermission denied
Oneway:
Log off the current user with root privileges or restart the computer (the user currently logged in to the graphical interface in this example is Sman)  , the three commands are: #创建用户组kvm # Add user Sman to the KVM user group # Automatically give user group KVM 0660 permissions when powering on
Trouble:
Unable to start Android emulator, prompt android/sdk/tools/emulator-netdelay none-netspeed full-avd nexus_5_api_23libgl error:failed to load Driver:i965libgl Error:try again with Libgl_debug=verbose for more details.failed to create drawablegetgles1extensionstr Ing:could not create GLES 1.x pbuffer! Failed to obtain GLES 1.x extensions string! Could not initialize emulated framebuffer
Oneway:
Follow the prompts to declare the environment variables in terminal and start the simulator export libgl_debug=verbose in terminal; Android/sdk/tools/emulator-netdelay none-netspeed full-avd nexus_5_api_23 get tip: libgl:opendriver:trying/usr/lib64/ XORG/MODULES/DRI/I965_DRI.SOLIBGL error:failed to open DRM device:permission DENIEDLIBGL error:failed to load driver:i 965libgl:opendriver:trying/usr/lib64/xorg/modules/dri/swrast_dri.solibgl:opendriver:trying/usr/lib64/xorg/ MODULES/DRI/I965_DRI.SOLIBGL error:failed to open DRM device:permission DENIEDLIBGL error:failed to load Driver:i965li bgl:opendriver:trying/usr/lib64/xorg/modules/dri/swrast_dri.sofailed to create drawablegetgles1extensionstring: Could not create GLES 1.x pbuffer! Failed to obtain GLES 1.x extensions string! Could not initialize emulated Framebuffersegmentation fault resolve the first error first, The first error is that you do not have permission to use the DRM device and then use the Groups command to check if the current user exists in the video user group [[email protected]:~]$ groupsusers Plugdev vboxusers KVM can see that Sman is not part of the video user group and then uses root permissions to add the current user Sman to the video user group [email protected]:~#usermod-g video-a SmanLog off the current user and log back in again (you must log in again, or the user group changes do not take effect) after logging in to confirm that Sman successfully joined the video user group [email protected]:~]$ groupsusers video Plugdev vboxusers KVM can see that Sman successfully joined the video user group and then started Android Studio, and then launched the emulator via Android Virtual Device Manager to see if the error was eliminated if prompted nand:could not write file /tmp/android-sman/emulator-7uy28s, File exists then rm/tmp/android-sman/emulator-* after the trial OK, successfully started the simulator
Trouble:
DNS resolution in Android emulator is normal but cannot ping out of network
Oneway:
This is normal, because the network communication between the simulator and the PC is implemented through TCP port forwarding, ping is the ICMP packet, there is no port, so the simulator cannot send the ping request but can browse the webpage normally, so you can't use ping to test whether the emulator can be networked, Instead, use a web browser to test
Trouble:
Error installing debug apk in Android emulator, prompting application installation Failedinstallation failed with message Install_failed_container_ ERROR. It is possible that this issue was resolved by uninstalling an existing version of the APK if it was present, and then re-in Stalling. Warning:uninstalling'll remove the application data! Does want to uninstall the existing application?
Oneway:
Method One: ADB rootadb shell rm/mnt/secure/asec/smdl* method Two: The project source file Androidmanifest.xml in the android:installlocation= " Preferexternal "modified to android:installlocation=" Auto "

"Go" FAQs about simulator emulation in Android development

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.