首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > Android >

emulator命令启动模拟器失败,该怎么解决

2012-06-09 
emulator命令启动模拟器失败编译完android系统后,在/out/target/product/filename目录中生成了img文件(sys

emulator命令启动模拟器失败
编译完android系统后,在/out/target/product/filename目录中生成了img文件(system.img userdata.img ramdisk.img uImage)想用emulator启动编译好的内核,
于是输入命令:
emulator -image system.img -data userdata.img -ramdisk ramdisk.img 

这时出现了以下警告:
emulator: WARNING: Please note that -image is obsolete and that -system is now used to point
to the system image. Next time, try using '-sysdir <path> -system <file>' instead.

emulator: WARNING: system partition size adjusted to match image file (200 MB > 66 MB)

emulator: WARNING: Unable to create sensors port: Connection refused
emulator: emulator window was out of view and was recentered
弹出的模拟器一直黑屏,启动没成功,开始以为是WARNING: system partition size adjusted to match image file (200 MB > 66 MB)这个问题产生的
于是又输入以下命令:
emulator -image system.img -data userdata.img -ramdisk ramdisk.img -partition-size 210

这时出现的警告又变了:
emulator: WARNING: Please note that -image is obsolete and that -system is now used to point
to the system image. Next time, try using '-sysdir <path> -system <file>' instead.

emulator: WARNING: Unable to create sensors port: Connection refused
弹出的模拟器还是一直黑屏

怀疑是不是因为没加上内核的关系,于是输入以下命令:
emulator -image system.img -data userdata.img -ramdisk ramdisk.img -partition-size 210 -kernel uImage 

感觉这时应该能启动了吧,却又报错:
emulator: WARNING: Please note that -image is obsolete and that -system is now used to point
to the system image. Next time, try using '-sysdir <path> -system <file>' instead.

emulator: WARNING: Unable to create sensors port: Connection refused
qemu: fatal: Trying to execute code outside RAM or ROM at 0x10008000

R00=00000000 R01=000005a1 R02=00000100 R03=00000000
R04=00000000 R05=00000000 R06=00000000 R07=00000000
R08=00000000 R09=00000000 R10=00000000 R11=00000000
R12=00000000 R13=00000000 R14=00000000 R15=10008000
PSR=400001d3 -Z-- A svc32
已放弃

这时模拟器启动之后又快速退出,连黑屏都省了直接异常退出!!!!!!!

该怎么解决这个问题呢?????



[解决办法]
4.0代码 make 之后 直接emulator
[解决办法]
几次提示你的try using '-sysdir <path> -system <file>' instead.
你的这个system.img能不能改一下

热点排行