首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >Android模拟器浏览器崩溃

Android模拟器浏览器崩溃
EN

Stack Overflow用户
提问于 2013-11-18 02:32:35
回答 3查看 9.7K关注 0票数 18

我正在尝试使用android sdk模拟器(mac)中的浏览器,但它在打开后总是崩溃。只要我用4.4就行了。我甚至不能输入URL。有没有一些日志可以让我检查一下,看看出了什么问题?我已经在两台机器上尝试过了,它们都有相同的错误。

以下是初始化日志:

emulator -avd AVD_for_Nexus_S_by_Google -debug-init
emulator: found SDK root at /usr/local/Cellar/android-sdk/22.3
emulator: Android virtual device file at: /Users/tobi/.android/avd/AVD_for_Nexus_S_by_Google.ini
emulator: virtual device content at /Users/tobi/.android/avd/AVD_for_Nexus_S_by_Google.avd
emulator: virtual device config file: /Users/tobi/.android/avd/AVD_for_Nexus_S_by_Google.avd/config.ini
emulator: using core hw config path: /Users/tobi/.android/avd/AVD_for_Nexus_S_by_Google.avd/hardware-qemu.ini
emulator: Found AVD target API level: 19
emulator: 'magic' skin format detected: 480x800
emulator: autoconfig: -skin 480x800
emulator: autoconfig: -skindir (null)
emulator: keyset loaded from: /Users/tobi/.android/default.keyset
emulator: found SDK root at /usr/local/Cellar/android-sdk/22.3
emulator: trying to load skin file '/usr/local/Cellar/android-sdk/22.3/tools/lib/emulator/skins/dynamic//layout'
emulator: loaded dynamic skin width=480 height=800 bpp=16

emulator: autoconfig: -kernel /usr/local/Cellar/android-sdk/22.3/system-images/android-19/armeabi-v7a//kernel-qemu
emulator: autoconfig: -ramdisk /usr/local/Cellar/android-sdk/22.3/system-images/android-19/armeabi-v7a//ramdisk.img
emulator: Using initial system image: /usr/local/Cellar/android-sdk/22.3/system-images/android-19/armeabi-v7a//system.img
emulator: autoconfig: -data /Users/tobi/.android/avd/AVD_for_Nexus_S_by_Google.avd/userdata-qemu.img
emulator: autoconfig: -initdata /Users/tobi/.android/avd/AVD_for_Nexus_S_by_Google.avd/userdata.img
emulator: autoconfig: -cache /Users/tobi/.android/avd/AVD_for_Nexus_S_by_Google.avd/cache.img
emulator: Physical RAM size: 343MB

Content of hardware configuration file:
  hw.cpu.arch = arm
  hw.cpu.model = cortex-a8
  hw.ramSize = 343
  hw.screen = touch
  hw.mainKeys = yes
  hw.trackBall = no
  hw.keyboard = yes
  hw.keyboard.lid = no
  hw.keyboard.charmap = qwerty2
  hw.dPad = no
  hw.gsmModem = yes
  hw.gps = yes
  hw.battery = no
  hw.accelerometer = yes
  hw.audioInput = yes
  hw.audioOutput = yes
  hw.sdCard = yes
  disk.cachePartition = yes
  disk.cachePartition.path = /Users/tobi/.android/avd/AVD_for_Nexus_S_by_Google.avd/cache.img
  disk.cachePartition.size = 66m
  hw.lcd.width = 480
  hw.lcd.height = 800
  hw.lcd.depth = 16
  hw.lcd.density = 240
  hw.lcd.backlight = yes
  hw.gpu.enabled = no
  hw.camera.back = none
  hw.camera.front = none
  vm.heapSize = 32
  hw.sensors.proximity = yes
  hw.sensors.magnetic_field = yes
  hw.sensors.orientation = yes
  hw.sensors.temperature = yes
  hw.useext4 = yes
  kernel.path = /usr/local/Cellar/android-sdk/22.3/system-images/android-19/armeabi-v7a//kernel-qemu
  kernel.parameters =  android.checkjni=1
  disk.ramdisk.path = /usr/local/Cellar/android-sdk/22.3/system-images/android-19/armeabi-v7a//ramdisk.img
  disk.systemPartition.initPath = /usr/local/Cellar/android-sdk/22.3/system-images/android-19/armeabi-v7a//system.img
  disk.systemPartition.size = 550m
  disk.dataPartition.path = /Users/tobi/.android/avd/AVD_for_Nexus_S_by_Google.avd/userdata-qemu.img
  disk.dataPartition.size = 200m
  avd.name = AVD_for_Nexus_S_by_Google
.
QEMU options list:
emulator: argv[00] = "/usr/local/Cellar/android-sdk/22.3/tools/emulator64-arm"
emulator: argv[01] = "-android-hw"
emulator: argv[02] = "/Users/tobi/.android/avd/AVD_for_Nexus_S_by_Google.avd/hardware-qemu.ini"
Concatenated QEMU options:
 /usr/local/Cellar/android-sdk/22.3/tools/emulator64-arm -android-hw /Users/tobi/.android/avd/AVD_for_Nexus_S_by_Google.avd/hardware-qemu.ini
emulator: registered 'boot-properties' qemud service
emulator: nand_add_dev: system,size=0x22600000,initfile=/usr/local/Cellar/android-sdk/22.3/system-images/android-19/armeabi-v7a//system.img,pagesize=512,extrasize=0
emulator: mapping 'system' NAND image to /tmp/android-tobi/emulator-lSd528
emulator: nand_add_dev: userdata,size=0xc800000,file=/Users/tobi/.android/avd/AVD_for_Nexus_S_by_Google.avd/userdata-qemu.img,pagesize=512,extrasize=0
emulator: registered 'boot-properties' qemud service
emulator: Adding boot property: 'dalvik.vm.heapsize' = '32m'
emulator: Adding boot property: 'qemu.sf.lcd_density' = '240'
emulator: Adding boot property: 'qemu.hw.mainkeys' = '1'
emulator: Adding boot property: 'qemu.sf.fake_camera' = 'none'
emulator: nand_add_dev: cache,size=0x4200000,file=/Users/tobi/.android/avd/AVD_for_Nexus_S_by_Google.avd/cache.img,pagesize=512,extrasize=0
emulator: Initializing hardware OpenGLES emulation support
emulator: Kernel parameters: qemu.gles=0 qemu=1 console=ttyS0 android.qemud=ttyS1 android.checkjni=1 ndns=1
emulator: Trace file name is not set

emulator: autoconfig: -scale 1
emulator: Could not open file: (null)/system/build.prop: No such file or directory
emulator: control console listening on port 5554, ADB on port 5555
emulator: sent '0012host:emulator:5555' to ADB server
emulator: ping program: /usr/local/Cellar/android-sdk/22.3/tools/ddms
emulator: ping command: /usr/local/Cellar/android-sdk/22.3/tools/ddms ping emulator 22.3.0 "Intel Inc." "Intel HD Graphics 5000 OpenGL Engine" "2.1 INTEL-8.18.26"
goldfish_fb_get_pixel_format:167: display surface,pixel format:
  bits/pixel:  16
  bytes/pixel: 2
  depth:       16
  red:         bits=5 mask=0xf800 shift=11 max=0x1f
  green:       bits=6 mask=0x7e0 shift=5 max=0x3f
  blue:        bits=5 mask=0x1f shift=0 max=0x1f
  alpha:       bits=0 mask=0x0 shift=0 max=0x0
EN

回答 3

Stack Overflow用户

发布于 2016-09-09 19:01:24

我在Android 6.0 Emulator上遇到了这个问题,直到我更新了浏览器的权限以允许访问存储,这为我解决了这个问题。

在模拟器中,导航到: Settings -> Apps -> Browser并选择权限,然后选择启用存储。

票数 28
EN

Stack Overflow用户

发布于 2013-12-06 00:16:54

我在AOSP上通过创建一个新的sdcard.img解决了这个问题:

mksdcard 1G out/target/product/generic/sdcard.img

然后使用以下命令启动模拟器:

emulator -sdcard out/target/product/generic/sdcard.img

对于SDK,尝试手动或通过GUI创建另一个SD卡。

票数 7
EN

Stack Overflow用户

发布于 2014-01-29 01:43:36

我可以通过为AVD指定SD卡大小来解决此问题

票数 4
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/20034553

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档