我正在开发一个基于 android 的小型项目(我对系统很陌生)。当我在 Android 模拟器上运行代码时,它崩溃了,我得到了noClassDefFoundError
. 我尝试导入的 .jar 是一个非常简单的类,编写为 Java 项目。错误不是 Android 依赖项或“lib/libs”。
.jars(我从 dropboxAPI 导入)工作得很好(在获得依赖关系之后),但同样的修复不适用于我的 .jar。
有谁知道我做错了什么?
// S verker
[2012-11-22 20:25:58 - DropDoList] Android Launch!
[2012-11-22 20:25:58 - DropDoList] adb is running normally.
[2012-11-22 20:25:58 - DropDoList] Performing com.example.dropdolist.DropDoList activity launch
[2012-11-22 20:25:58 - DropDoList] Automatic Target Mode: using existing emulator 'emulator-5554' running compatible AVD 'Galaxy2v3'
[2012-11-22 20:25:58 - DropDoList] WARNING: Application does not specify an API level requirement!
[2012-11-22 20:25:58 - DropDoList] Device API version is 16 (Android 4.1.2)
[2012-11-22 20:25:58 - DropDoList] Uploading DropDoList.apk onto device 'emulator-5554'
[2012-11-22 20:26:02 - DropDoList] Installing DropDoList.apk...
[2012-11-22 20:26:11 - DropDoList] Success!
[2012-11-22 20:26:11 - DropDoList] Starting activity com.example.dropdolist.DropDoList on device emulator-5554
[2012-11-22 20:26:12 - DropDoList] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.example.dropdolist/.DropDoList }
[2012-11-22 20:41:10 - DropDoList] Dx
trouble processing:
[2012-11-22 20:41:10 - DropDoList] Dx bad class file magic (cafebabe) or version (0033.0000)
...while parsing Tester/Transaction.class
...while processing Tester/Transaction.class
[2012-11-22 20:41:10 - DropDoList] Dx
trouble processing:
[2012-11-22 20:41:10 - DropDoList] Dx bad class file magic (cafebabe) or version (0033.0000)
...while parsing test/Tester.class
...while processing test/Tester.class
[2012-11-22 20:41:10 - DropDoList] Dx 2 warnings