1

我正在尝试在 Ubuntu 12.04 上运行 Google TV 模拟器。模拟器启动,但挂在屏幕中央,屏幕中间有一个 Google TV 徽标。我通过 adb 连接,日志循环显示以下消息:

I/CameraService( 1038): CameraService started (pid=1038)
I/AudioFlinger( 1038): AudioFlinger's thread 0x9bb5a78 ready to run
I/ServiceManager(  795): Waiting for service SurfaceFlinger...
I/ServiceManager(  795): Waiting for service SurfaceFlinger...
I/ServiceManager(  795): Waiting for service SurfaceFlinger...
I/ServiceManager(  795): Waiting for service SurfaceFlinger...
I/ServiceManager(  795): Waiting for service SurfaceFlinger...
D/AndroidRuntime( 1048): 
D/AndroidRuntime( 1048): >>>>>> AndroidRuntime START com.android.internal.os.ZygoteInit <<<<<<
D/AndroidRuntime( 1048): CheckJNI is ON
E/dalvikvm( 1048): Bad heap size parameters (start=5242880, max=33554432, limit=100663296)
W/dalvikvm( 1048): JNI_CreateJavaVM failed
E/AndroidRuntime( 1048): JNI_CreateJavaVM failed
I/ServiceManager(  782): service 'media.audio_flinger' died
I/ServiceManager(  782): service 'media.player' died
I/ServiceManager(  782): service 'media.camera' died
I/ServiceManager(  782): service 'media.audio_policy' died
I/Netd    ( 1050): Netd 1.0 starting
I/        ( 1049): ServiceManager: 0x8c6fed8
E/        ( 1049): Failed to switch to AID_MEDIA user, error -1
W/GoogleTVMediaApi( 1049): InitializeGTVMediaLibraries not implemented
W/AVAPIService( 1049): InstantiateAVAPIService not implemented
W/AudioHardwareInterface( 1049): Using stubbed audio hardware. No sound will be produced.
D/AudioHardwareInterface( 1049): setMode(NORMAL)
4

2 回答 2

6

有一个新版本的模拟器即将推出(很快)。在此期间,您可以检查您的 AVD 参数。我的如下:

hw.lcd.density=213
hw.keyboard.charmap=Emulator
sdcard.size=1G
skin.name=720p
skin.path=add-ons/addon-google_tv_addon-google-12/skins/720p
hw.cpu.arch=x86
abi.type=x86
vm.heapSize=256
hw.ramSize=1024
disk.dataPartition.size=128
image.sysdir.1=add-ons/addon-google_tv_addon-google-12/images/x86/
于 2012-12-13T16:58:12.217 回答
3

错误是由于“Bad heap size parameters”而出现的。所以调整堆大小:对我来说,我将堆大小从 64 更改为 128。在编辑 Android 虚拟设备中。

在此处输入图像描述

于 2014-01-27T09:39:32.720 回答