我正在尝试在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)
答案 0 :(得分: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/
答案 1 :(得分:3)
由于“堆大小参数错误”而出现错误。 因此调整堆大小:对我来说,我将堆大小从64更改为128。 在编辑Android虚拟设备。