gpt4 book ai didi

android - 设置 ADT Eclipse

转载 作者:行者123 更新时间:2023-11-29 01:47:33 28 4
gpt4 key购买 nike

我在这里试图设置 ADT Eclipse 快要疯了!!!!!! (<- 过度使用感叹号就是明证)

我想要的只是运行没有任何 LogCat 错误的基本 HelloWorld 示例,当我在安装后第一次运行它时可以正常工作,但在我重新启动 PC 后,我会收到大量错误。程序仍然会运行,但在更复杂的项目中,我不知道应用程序崩溃是因为我还是因为设置错误。

以下是我尝试过的方法:

  • 许多不同的测试配置(具有不同设置的 AVD 以及使用我的实际手机)
  • 删除 API19 并改用 API18
  • [在我的多用户 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)

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

最佳答案

那不是你的错误,而是不同系统服务的错误。您可以为 LogCat 设置一个过滤器,这样您只会看到来自您的应用程序的错误:

enter image description here

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

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

enter image description here

关于android - 设置 ADT Eclipse,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20519308/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com