gpt4 book ai didi

android-emulator - Android 模拟器因多个错误而挂起

转载 作者:行者123 更新时间:2023-12-04 07:26:37 25 4
gpt4 key购买 nike

我从源代码构建了 Android,当我执行模拟器时,它卡在 android 初始页面上。详情如下

JAVA_VERSION=1.6.0_35
PLATFORM_VERSION_CODENAME=AOSP
PLATFORM_VERSION=4.1.2.3.4.5.6.7.8.9
TARGET_PRODUCT=full
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.4.11-1.fc16.x86_64-x86_64-with-fedora-16-Verne
HOST_BUILD_TYPE=release
BUILD_ID=OPENMASTER
OUT_DIR=out

I execute the following command which produces the output below:

emulator -verbose -debug-all -logcat -v



W/dalvikvm( 553): Exception Ljava/lang/RuntimeException; thrown while initializing Llibcore/util/ZoneInfoDB;
W/dalvikvm( 553): Exception Ljava/lang/ExceptionInInitializerError; thrown while initializing Ljava/util/Date;
E/Zygote ( 553): Error preloading java.util.Date.
E/Zygote ( 553): java.lang.ExceptionInInitializerError
E/Zygote ( 553): at java.lang.Class.classForName(Native Method)
E/Zygote ( 553): at java.lang.Class.forName(Class.java:217)
E/Zygote ( 553): at java.lang.Class.forName(Class.java:172)
E/Zygote ( 553): at com.android.internal.os.ZygoteInit.preloadClasses(ZygoteInit.java:287)
E/Zygote ( 553): at com.android.internal.os.ZygoteInit.preload(ZygoteInit.java:234)
E/Zygote ( 553): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:524)
E/Zygote ( 553): at dalvik.system.NativeStart.main(Native Method)
E/Zygote ( 553): Caused by: java.lang.ExceptionInInitializerError
E/Zygote ( 553): at java.util.TimeZone.getDefault(TimeZone.java:134)
E/Zygote ( 553): at java.util.GregorianCalendar.<init>(GregorianCalendar.java:335)
E/Zygote ( 553): at java.util.GregorianCalendar.<init>(GregorianCalendar.java:294)
E/Zygote ( 553): at java.util.Date.getYear(Date.java:334)
E/Zygote ( 553): at java.util.Date.<clinit>(Date.java:43)
E/Zygote ( 553): ... 7 more
E/Zygote ( 553): Caused by: java.lang.RuntimeException: java.io.FileNotFoundException: /system/usr/share/zoneinfo/zoneinfo.version: open failed: ENOENT (No such file or directory)
E/Zygote ( 553): at libcore.util.ZoneInfoDB.readVersion(ZoneInfoDB.java:101)
E/Zygote ( 553): at libcore.util.ZoneInfoDB.<clinit>(ZoneInfoDB.java:66)
E/Zygote ( 553): ... 12 more
E/Zygote ( 553): Caused by: java.io.FileNotFoundException: /system/usr/share/zoneinfo/zoneinfo.version: open failed: ENOENT (No such file or directory)
E/Zygote ( 553): at libcore.io.IoBridge.open(IoBridge.java:416)
E/Zygote ( 553): at java.io.RandomAccessFile.<init>(RandomAccessFile.java:118)
E/Zygote ( 553): at java.io.RandomAccessFile.<init>(RandomAccessFile.java:150)
E/Zygote ( 553): at libcore.io.IoUtils.readFileAsBytes(IoUtils.java:115)
E/Zygote ( 553): at libcore.io.IoUtils.readFileAsByteArray(IoUtils.java:102)
E/Zygote ( 553): at libcore.util.ZoneInfoDB.readVersion(ZoneInfoDB.java:98)
E/Zygote ( 553): ... 13 more
E/Zygote ( 553): Caused by: libcore.io.ErrnoException: open failed: ENOENT (No such file or directory)
E/Zygote ( 553): at libcore.io.Posix.open(Native Method)
E/Zygote ( 553): at libcore.io.BlockGuardOs.open(BlockGuardOs.java:110)
E/Zygote ( 553): at libcore.io.IoBridge.open(IoBridge.java:400)
E/Zygote ( 553): ... 18 more
D/AndroidRuntime( 553): Shutting down VM
W/dalvikvm( 553): threadid=1: thread exiting with uncaught exception (group=0x40a0d978)
emulator: _qemudPipe_closeFromGuest
emulator: goldfish_audio_write: AUDIO_INT_ENABLE 0
I/ServiceManager( 30): service 'media.audio_policy' died
I/ServiceManager( 30): service 'media.audio_flinger' died
I/ServiceManager( 30): service 'media.player' died
I/ServiceManager( 30): service 'media.camera' died
I/Netd ( 670): Netd 1.0 starting
emulator: Error while connecting to socket '127.0.0.1:1970': 111 -> Connection refused
emulator: ASC 127.0.0.1:1970: Retrying connection. Connector FD = 20

丢失的文件/system/usr/share/zoneinfo/zoneinfo.version 似乎包含在数据文件 tzdata 中,但是似乎没有正确读取该文件。

最佳答案

关于android-emulator - Android 模拟器因多个错误而挂起,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13028332/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com