1

我最近将我的 ubuntu 10.04 LTS 升级到了 ubuntu 12.04 LTS。

AVD 之后在我的日食中停止工作。

错误信息:

[2012-10-03 16:16:11 - xyzapp] Android Launch!
[2012-10-03 16:16:11 - xyzapp] adb is running normally.
[2012-10-03 16:16:11 - xyzapp] Performing com.xyz.XYZSampleActivity activity launch
[2012-10-03 16:16:11 - xyzapp] Automatic Target Mode: Preferred AVD 'test' is not available. Launching new emulator.
[2012-10-03 16:16:11 - xyzapp] Launching a new emulator with Virtual Device 'test'
[2012-10-03 16:16:11 - Emulator] SDL init failure, reason is: No available video device

我在这篇文章中尝试了一个答案

sudo apt-get install libsdl1.2debian:i386

但我无法成功。

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'libsdl1.2debian-oss:i386' for regex 'libsdl1.2debian'
Note, selecting 'libsdl1.2debian-alsa:i386' for regex 'libsdl1.2debian'
Note, selecting 'libsdl1.2debian-arts:i386' for regex 'libsdl1.2debian'
Note, selecting 'libsdl1.2debian-pulseaudio:i386' for regex 'libsdl1.2debian'
Note, selecting 'libsdl1.2debian-all:i386' for regex 'libsdl1.2debian'
Note, selecting 'libsdl1.2debian-esd:i386' for regex 'libsdl1.2debian'
Note, selecting 'libsdl1.2debian-nas:i386' for regex 'libsdl1.2debian'
The following packages were automatically installed and are no longer required:
  lib32bz2-1.0 cups-pk-helper libdb5.1-java-gcj libnet-daemon-perl libswscale0 libpam-winbind libktnef4 ttf-umefont tracker-miner-fs guile-1.6 libgraphicsmagick3 realpath libdb4.7-java gnome-exe-thumbnailer libkxmlrpcclient4 libpolkit-qt-1-0 libaqbanking29-plugins-qt
  appmenu-gtk tracker lib32ncurses5 libxine1-x tracker-utils kpackagekit untex libaqbanking29-plugins libmodplug0c2 libdb4.7-java-gcj lib32tinfo5 g++-4.4 openoffice.org-l10n-en-gb packagekit-backend-aptcc libasm2-java tracker-gui libboost-program-options1.40.0 kdelibs5
  libdbi-perl libaqofxconnect5 libctemplate0 libmagick++2 libiso9660-7 guile-1.6-libs libtracker-extract-0.14-0 libcapi20-3 wv libexiv2-6 libtrackerclient0 libdvbpsi5 libmysqlclient16 libsyndication4 libtracker-gtk0 libguile-ltdl-1 libc6-i386 kdesudo libdb5.1-java
  libcommons-collections-java lib32gcc1 appmenu-qt libx264-85 gir1.2-gconf-2.0 lib32asound2 lib32nss-mdns wine-gecko1.4 libqgpgme1 libwv-1.2-3 libwv-1.2-4 virtuoso-nepomuk libreadline5 ttf-symbol-replacement appmenu-gtk3 libmatroska0 libkrossui4 tracker-miner-evolution
  libiptcdata0 libdbd-mysql-perl libpostproc51 tracker-extract libxine1-console libaqhbci17 libgwenhywfar47 libwildmidi0 openoffice.org-l10n-common libkblog4 libzip1 install-package libzip2 libqt4-assistant gdebi-kde libxine1-misc-plugins libplrpc-perl libkimproxy4
  kdepimlibs5 update-manager-kde libattica0 guile-1.6-slib libsoundtouch1c2 libtracker-miner-0.14-0 libmpg123-0 libid3tag0 lib32z1 kdebase-runtime lib32stdc++6 odt2txt winbind libservlet2.4-java-gcj fonts-droid libaqbanking-plugins-libgwenhywfar47 libtracker-sparql-0.14-0
  libaxis-java-gcj libaqbanking29 python-pysqlite2 libebml0 gir1.2-panelapplet-4.0 libmpcdec3 libxine1-bin libkutils4 libqbanking8 ttf-droid libxine1-ffmpeg libgpgme++2 libstdc++6-4.4-dev packagekit-backend-apt libxine1
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
4

2 回答 2

6

问题在于我的 apt-get 存储库。这就是我为使其正常工作所做的工作。

  • 我将站点http://archive.canonical.com/添加到存储库列表中。

  • 我更新了apt-get。

  • 我安装了libsdl1.2debian:i386

sudo apt-add-repository "deb http://archive.canonical.com/ $(lsb_release -sc) partner"    
sudo apt-get update    
sudo apt-get install libsdl1.2debian:i386
于 2012-10-04T06:47:58.653 回答
1

指定-no-window选项解决了我同样的问题。

emulator -avd <avd_name> -no-window

根据从命令行控制模拟器的文档:

-无窗| 禁用模拟器图形窗口显示。

于 2016-08-13T23:25:52.577 回答