2013-12-11 73 views
2

我要疯了,试图设置ADT Eclipse !!!!! (< - 正如过度使用感叹号所证明的那样)设置ADT Eclipse

我只想运行基本的HelloWorld示例,没有任何LogCat错误,这在我安装后第一次运行它时起作用,但在重新启动后个人电脑,我得到吨的错误。该程序仍然可以运行,但在更复杂的项目中,我不知道该应用程序是因为我还是因为设置不良而崩溃。

这里是我试过的东西:

  • 许多不同的测试配置
  • 去除API19和使用API​​18代替
  • [(使用不同的设置,以及用我的实际电话自动真空淀积)在我的多用户PC上],使用环境变量ANDROID_SDK_HOME和user.home中的首选项
  • 32位和64位版本,单用户和多用户Windows 7安装(我甚至对单个用户进行了全新的32位Win7安装)通常我有我的家呃在d:但我也试图与默认设置
  • 捶胸顿足,希望这种偏差会自行消失,或者这一切都只是一场噩梦

最终的结果总是相同的用户,它可能会第一次运行,但是当运行该项目时,我会遇到很多错误。

所以我真的很感谢这方面的一些帮助,无论是通过指向我做错了什么或如何设置ADT的分步指南。

下面是HelloWorld项目完整的错误日志(虽然它的实际的电话,在那里我得到很多不同的误差对尝试它时看起来不一样):

12-11 07:11:42.541: E/PowerManagerService-JNI(275): Couldn't load power module (No such file or directory) 
12-11 07:11:42.862: E/SurfaceFlinger(37): ro.sf.lcd_density must be defined as a build property 
12-11 07:11:46.991: E/SoundPool(275): error loading /system/media/audio/ui/Lock.ogg 
12-11 07:11:46.991: E/SoundPool(275): error loading /system/media/audio/ui/Unlock.ogg 
12-11 07:11:47.221: E/EventHub(275): could not get driver version for /dev/input/mouse0, Not a typewriter 
12-11 07:11:47.221: E/EventHub(275): could not get driver version for /dev/input/mice, Not a typewriter 
12-11 07:11:47.981: E/MobileDataStateTracker(275): default: Ignoring feature request because could not acquire PhoneService 
12-11 07:11:47.991: E/MobileDataStateTracker(275): default: Could not enable APN type "default" 
12-11 07:11:52.800: E/LocationManagerService(275): no geocoder provider found 
12-11 07:11:52.820: E/LocationManagerService(275): no geofence provider found 
12-11 07:11:55.280: E/BluetoothAdapter(346): Bluetooth binder is null 
12-11 07:11:55.280: E/BluetoothAdapter(346): Bluetooth binder is null 
12-11 07:11:55.571: E/BluetoothAdapter(346): Bluetooth binder is null 
12-11 07:11:55.651: E/BluetoothAdapter(442): Bluetooth binder is null 
12-11 07:11:56.691: E/BluetoothAdapter(407): Bluetooth binder is null 
12-11 07:11:56.931: E/BluetoothAdapter(442): Bluetooth binder is null 
12-11 07:11:57.771: E/BluetoothAdapter(407): Bluetooth binder is null 
12-11 07:11:57.911: E/cutils-trace(492): Error opening trace file: No such file or directory (2) 
12-11 07:11:57.971: E/BluetoothAdapter(346): Bluetooth binder is null 
12-11 07:12:02.541: E/BluetoothAdapter(346): Bluetooth binder is null 
12-11 07:12:03.551: E/BluetoothAdapter(442): Bluetooth binder is null 
12-11 07:12:04.261: E/BluetoothAdapter(275): Bluetooth binder is null 
12-11 07:12:04.261: E/BluetoothAdapter(275): Bluetooth binder is null 
12-11 07:12:04.371: E/SoundPool(275): error loading /system/media/audio/ui/Effect_Tick.ogg 
12-11 07:12:04.381: E/SoundPool(275): error loading /system/media/audio/ui/Effect_Tick.ogg 
12-11 07:12:04.381: E/SoundPool(275): error loading /system/media/audio/ui/Effect_Tick.ogg 
12-11 07:12:04.381: E/SoundPool(275): error loading /system/media/audio/ui/Effect_Tick.ogg 
12-11 07:12:04.381: E/SoundPool(275): error loading /system/media/audio/ui/Effect_Tick.ogg 
12-11 07:12:04.381: E/SoundPool(275): error loading /system/media/audio/ui/KeypressStandard.ogg 
12-11 07:12:04.381: E/SoundPool(275): error loading /system/media/audio/ui/KeypressSpacebar.ogg 
12-11 07:12:04.381: E/SoundPool(275): error loading /system/media/audio/ui/KeypressDelete.ogg 
12-11 07:12:04.381: E/SoundPool(275): error loading /system/media/audio/ui/KeypressReturn.ogg 
12-11 07:12:12.357: E/ConnectivityService(275): startUsingNetworkFeature took too long: 4250ms 
12-11 07:12:12.627: E/logwrapper(686): executing /system/bin/ip failed: No such file or directory 
12-11 07:12:12.647: E/SecondaryTablController(34): ip route add failed: /system/bin/ip route add 10.0.2.2/32 via 0.0.0.0 dev eth0 table 60 
12-11 07:12:12.657: E/ConnectivityService(275): Exception trying to add a route: java.lang.IllegalStateException: command '11 interface route add eth0 secondary 10.0.2.2 32 0.0.0.0' failed with '400 11 ip route modification failed (No such device)' 
12-11 07:12:12.667: E/logwrapper(687): executing /system/bin/ip failed: No such file or directory 
12-11 07:12:12.707: E/SecondaryTablController(34): ip route add failed: /system/bin/ip route add 0.0.0.0/0 via 10.0.2.2 dev eth0 table 60 
12-11 07:12:12.707: E/ConnectivityService(275): Exception trying to add a route: java.lang.IllegalStateException: command '12 interface route add eth0 secondary 0.0.0.0 0 10.0.2.2' failed with '400 12 ip route modification failed (No such device)' 
12-11 07:12:13.687: E/SQLiteLog(615): (1) no such table: Account 
12-11 07:12:17.247: E/BluetoothAdapter(442): Bluetooth binder is null 
12-11 07:12:18.917: E/logwrapper(752): executing /system/bin/ip failed: No such file or directory 
12-11 07:12:18.937: E/SecondaryTablController(34): ip route del failed: /system/bin/ip route del 10.0.2.2/32 via 0.0.0.0 dev eth0 table 60 
12-11 07:12:18.957: E/logwrapper(754): executing /system/bin/ip failed: No such file or directory 
12-11 07:12:18.977: E/SecondaryTablController(34): ip route del failed: /system/bin/ip route del 0.0.0.0/0 via 10.0.2.2 dev eth0 table 60 
12-11 07:12:20.887: E/cutils-trace(765): Error opening trace file: No such file or directory (2) 

预先感谢您的帮助!我非常沮丧,因为我非常期待开发自己的程序。

+1

是你的应用程序崩溃..? –

+0

如果这些错误不会影响您的应用程序进程,请忽略它们。 –

+0

所以只是为了澄清......你们在运行程序时也有这些错误? – Markstar

回答

1

这些不是你的错误,而是不同系统服务的错误。您可以将过滤器设置为logcat的,所以你只能看到你的应用程序错误:

enter image description here

在Eclipse中,你只需要点击小“+”符号堆栈的左侧跟踪。

当然,通过应用程序过滤logcat的也有可能在的IntelliJ/Android的工作室:

enter image description here

+0

感谢您快速详尽的回答! 但是,如何知道这些错误不会影响我的实际程序?例如,错误“SQLiteLog - (1)没有这样的表:文件”似乎对我很重要... – Markstar