我刚开始使用 android(仅在文本编辑器中编写了 Java),我将不胜感激。我按照建议下载了 ADT 包,以及 SDK 管理器中的一些包。接下来我设置了一个 Nexus 4 虚拟设备,它的默认 RAM 值为 1907MB。即使按照建议将 RAM 减少到 768MB,在启动虚拟设备时,我仍然在 LogCat 中遇到几十个错误。但是,使用不同的设备我没有得到所有这些错误?
所以这是我的问题:
- 我做错什么了吗?Nexus 系列是不是特别不适合编程(Nexus10 虚拟设备只是显示黑屏......甚至没有任何错误,尽管 Nexus7 似乎确实可以工作)?
- 我有 16GB RAM,i7-2500K@4GHz,三星 830 SSD,干净的 Win7 x64,但模拟器很慢。这是正常的(完全可以理解)还是虚拟设备对除我之外的其他人来说都很流畅?
- ADT 捆绑包是要走的路还是我应该分别下载 eclipse 和 SDK?
预先感谢您的帮助!
编辑:仅发布第一个和最后几个错误(仅包含错误的日志文件约为 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)