- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我在这里试图设置 ADT Eclipse 快要疯了!!!!!! (<- 过度使用感叹号就是明证)
我想要的只是运行没有任何 LogCat 错误的基本 HelloWorld 示例,当我在安装后第一次运行它时可以正常工作,但在我重新启动 PC 后,我会收到大量错误。程序仍然会运行,但在更复杂的项目中,我不知道应用程序崩溃是因为我还是因为设置错误。
以下是我尝试过的方法:
最终结果总是一样的,它可能第一次成功,但后来我在运行项目时遇到了很多错误。
因此,我真的很感激能在这方面提供一些帮助,无论是指出我做错了什么,还是提供有关如何设置 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 设置一个过滤器,这样您只会看到来自您的应用程序的错误:
在 Eclipse 中,您只需单击堆栈跟踪左侧的小“+”符号。
当然,在IntelliJ/Android Studio中也可以按应用过滤LogCat:
关于android - 设置 ADT Eclipse,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20519308/
Google发布的ADT bundle 包的最终版本是什么? 由于宣布“Android Studio”为开发Android应用程序的正式IDE,因此ADT bundle 包(带有ADT插件和Andro
我在 Eclipse Indigo (3.7.2) 中更新我的 android ADT 插件时遇到了一个可怕的错误。请检查所附图片。 谢谢 最佳答案 遇到了类似的问题。这就是我修复它的方式。 1.从
我正在使用 ADT 包 22.3。这是我直接从 android.com 下载的完整离线压缩包。但现在他们已经将更新推送到 ADT bundle 22.6,所以在下载 ADT bundle 22.6 z
我用 C 语言创建了一个基于结构的抽象数据类型。在这个结构中,有指向同样基于结构的其他 ADT 的指针。我想知道如何/是否可以正确初始化内部指针并消除内存访问冲突错误。代码如下: typedef st
我想创建一棵树(使用 Node 或 ADT),其中每个节点都有一个指向其父节点的注释。下面是一个简单的链表数据结构的例子: import util::Math; import IO; import N
在 eclipse 上 - 尽管我使用的是最新的 adt 版本,但我还是收到了这个错误。我不确定它是否相关,但这发生在我安装 android-m sdk 之后。 最佳答案 从这里开始: https:/
我的应用程序运行良好。但是,一旦我从 ADT 16 更新到 ADT 17,就会收到此错误 Unable to resolve superclass of Lcom/my/app/MyActivity;
大家早上好 我是 SO 的新手,我问这个问题是因为我必须重新调整昨天的算法和编程考试。在 CodeBlocks 上输入我的考试时,我遇到了一个我无法修复的错误。基本上,考试要求从数据结构中的文件(格式
几乎没有人在 ADT 中成功导入 Apklib(aar) 引用。这是一个 issues ,但没有答案。在问题中,这是一个 solution有效但丑陋。 作为 ADT 的粉丝,我不想使用 Android
我遇到了从 安装 ADT 的问题 https://dl-ssl.google.com/android/eclipse/ 和 http://dl-ssl.google.com/android/eclip
在使用 Eclipse 开发时,尝试安装 hibernate、storm 和其他一些 ORM/DAO 生成器工具时,eclipse 停止正常工作。 我有两种错误:1 在构建它时说“运行 android
这个问题在这里已经有了答案: Update Eclipse with Android development tools v. 23 (43 个回答) 关闭8年前。 我从这个网站下载并安装了带有 an
我在创建 dynArray 并向其添加元素时遇到了问题。我不确定如何为它分配内存。我最近才开始提出建议,因此非常感谢您的帮助。 typedef struct{ doube *darray; i
假设我有一个 ADT 和类型类 Foo像这样: sealed trait A case class A1() extends A case class A2() extends A case clas
我正在使用 scala 驱动程序与 mongodb 进行 IO 操作。我的Scala版本是2.11.11 mongo db 驱动程序是 2.2.0 . 我以关于 ADT 的文档为例: sealed c
我正在尝试用 C++ 实现二叉搜索树(用于大学类(class)),但在访问我在 .h 文件中定义的结构时遇到了一些困难。 这是我的 .h 文件: class BST { protected:
我有两个空中应用程序并将它们安装在桌面上并执行它们,并且任务栏管理器中列出了两个空中进程。现在如何从另一个空中应用程序执行一个空中应用程序的某些方法? 最佳答案 使用LocalConnection .
我不是数学家,但我觉得存在一些逻辑问题。 让我们从 ADT 原语开始,例如“unit”类型。它应该在类型集的上下文中扮演“1”的角色。但事实上,我们看到“unit”类型在C、C++等中经常被称为“vo
在 C 中创建 ADT 时返回结构体指针的原因是什么?例如: typedef struct some_thing st_t; // system interface st_t* init_syste
更新到 ADT 22.3 后,出现此错误: [2013-11-09 17:56:27 - Dex Loader] Unable to execute dex: java.nio.BufferOverf
我是一名优秀的程序员,十分优秀!