启动虚拟设备时出现大量错误

时间:2013-07-31 14:29:33

标签: android adt

我刚开始使用android(仅在文本编辑器中编写过Java),我将非常感谢您的输入。我按照建议下载了ADT软件包,以及SDK Manager中的一些软件包。接下来,我设置了一个Nexus 4虚拟设备,其默认RAM值为1907MB。即使按照建议将RAM减少到768MB,我在启动虚拟设备时仍会在LogCat中收到数十个错误。但是,使用不同的设备我没有得到所有这些错误?

所以这是我的问题:

  1. 我做错了什么吗? Nexus系列是否特别糟糕(Nexus10虚拟设备只显示黑屏......甚至没有任何错误,尽管Nexus7确实有用)?
  2. 我有16GB内存,i7-2500K @ 4GHz,三星830 SSD,干净的Win7 x64,但模拟器速度很慢。这是正常的(完全可以理解)还是除了我之外其他人的虚拟设备是否顺畅?
  3. ADT捆绑是可行的,还是我应该单独下载eclipse和SDK?
  4. 提前感谢您的帮助!

    编辑:仅发布第一个和最后几个错误(仅包含错误的日志文件约为45KB,共计362个错误)

    08-01 05:42:42.007: E/BatteryService(292): usbOnlinePath not found
    08-01 05:42:42.007: E/BatteryService(292): wirelessOnlinePath not found
    08-01 05:42:42.007: E/BatteryService(292): batteryVoltagePath not found
    08-01 05:42:42.007: E/BatteryService(292): batteryTemperaturePath not found
    08-01 05:42:42.109: E/PowerManagerService-JNI(292): Couldn't load power module (No such file or directory)
    08-01 05:42:42.317: E/SurfaceFlinger(37): ro.sf.lcd_density must be defined as a build property
    08-01 05:43:21.147: E/SQLiteLog(292): (1) no such table: secure
    08-01 05:43:21.597: E/SoundPool(292): error loading /system/media/audio/ui/Lock.ogg
    08-01 05:43:21.597: E/SoundPool(292): error loading /system/media/audio/ui/Unlock.ogg
    08-01 05:43:21.857: E/EventHub(292): could not get driver version for /dev/input/mouse0, Not a typewriter
    ...
    08-01 05:46:23.181: E/StrictMode(713):  at com.android.emailcommon.service.ServiceProxy.setTask(ServiceProxy.java:157)
    08-01 05:46:23.181: E/StrictMode(713):  at com.android.emailcommon.service.ServiceProxy.setTask(ServiceProxy.java:145)
    08-01 05:46:23.181: E/StrictMode(713):  at com.android.emailcommon.service.ServiceProxy.test(ServiceProxy.java:191)
    08-01 05:46:23.181: E/StrictMode(713):  at com.android.exchange.ExchangeService$7.run(ExchangeService.java:1850)
    08-01 05:46:23.181: E/StrictMode(713):  at com.android.emailcommon.utility.Utility$2.doInBackground(Utility.java:551)
    08-01 05:46:23.181: E/StrictMode(713):  at com.android.emailcommon.utility.Utility$2.doInBackground(Utility.java:549)
    08-01 05:46:23.181: E/StrictMode(713):  at android.os.AsyncTask$2.call(AsyncTask.java:287)
    08-01 05:46:23.181: E/StrictMode(713):  at java.util.concurrent.FutureTask.run(FutureTask.java:234)
    08-01 05:46:23.181: E/StrictMode(713):  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)
    08-01 05:46:23.181: E/StrictMode(713):  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573)
    08-01 05:46:23.181: E/StrictMode(713):  at java.lang.Thread.run(Thread.java:856)
    

2 个答案:

答案 0 :(得分:0)

  1. 我从未遇到过虚拟仿真器的任何问题,如果N4不能正常工作,或者通过usb使用Android设备。

  2. 无论你做什么,它都很慢,但如果你使用大图像资源,它变得更慢,因为它必须将所有内容打包到.apk中,将其发送到设备并安装它。

    < / LI>
  3. ADT Bundle是要走的路。

答案 1 :(得分:0)

你能开始Nex4 AVD吗?如果没有,请尝试删除它并创建一个新的,RAM较小,比如700MiB。

你的答案,
 1.)据你提到,似乎没有错。 (请发布LogCat o / p)  2.)仿真器很慢。但你调整的东西加快了一点。这就是你做的。

    i.) Enable Hardware Virtualization (Intel VT-x) in your bios.
    ii.) Open ADT -> SDK Manager. In the extras section, you can find the Intel HAXM.
    iii.) Check the package and Click "Install Packages".
    iv.) This just downloads the executable. Install it manually from "C:\Program Files\Android\android-sdk\extras\Intel\Hardware_Accelerated_Execution_Manager\IntelHaxm.exe".
    v.) Go for default RAM allocation in installation. 
    vi.) Now when you create a new AVD, in Hardware section Set the flag "GPU emulation" to "yes"

3。)ADT是首选方式,但它与安装SDK&amp;之后的情况没有什么不同。 IDE单独。

相关问题