设置ADT Eclipse

时间:2013-12-11 12:35:51

标签: android eclipse installation adt

我在这里试图设置ADT Eclipse疯了!!!!! (& - 由过度使用感叹号证明)

我想要的只是在没有任何LogCat错误的情况下运行基本的HelloWorld示例,这在安装后第一次运行时会起作用,但是在我重新启动PC之后,我得到了很多错误。程序仍然会运行,但在更复杂的项目中,我不知道应用程序是因为我还是因为设置错误而崩溃。

以下是我尝试过的事情:

  • 许多不同的测试配置(具有不同设置的AVD以及使用我的实际手机)
  • 删除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 :(得分:1)

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

enter image description here

在Eclipse中,您只需单击堆栈跟踪左侧的小“+”符号即可。

当然,在IntelliJ / Android Studio中也可以按应用程序过滤LogCat:

enter image description here