NoClassDefFoundError问题,jar包好像没少啊

新手上路,请多包涵

08-11 17:42:30.336: E/AndroidRuntime(24346): java.lang.NoClassDefFoundError: com.qiniu.android.storage.persistent.FileRecorder
08-11 17:42:30.336: E/AndroidRuntime(24346): at com.ark.collection.ui.CollectionApplication.initQiniu(CollectionApplication.java:142)
08-11 17:42:30.336: E/AndroidRuntime(24346): at com.ark.collection.ui.CollectionApplication.onCreate(CollectionApplication.java:116)
08-11 17:42:30.336: E/AndroidRuntime(24346): at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1007)
08-11 17:42:30.336: E/AndroidRuntime(24346): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4374)
08-11 17:42:30.336: E/AndroidRuntime(24346): at android.app.ActivityThread.access$1500(ActivityThread.java:141)
08-11 17:42:30.336: E/AndroidRuntime(24346): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1264)
08-11 17:42:30.336: E/AndroidRuntime(24346): at android.os.Handler.dispatchMessage(Handler.java:102)
08-11 17:42:30.336: E/AndroidRuntime(24346): at android.os.Looper.loop(Looper.java:136)
08-11 17:42:30.336: E/AndroidRuntime(24346): at android.app.ActivityThread.main(ActivityThread.java:5049)
08-11 17:42:30.336: E/AndroidRuntime(24346): at java.lang.reflect.Method.invokeNative(Native Method)
08-11 17:42:30.336: E/AndroidRuntime(24346): at java.lang.reflect.Method.invoke(Method.java:515)
08-11 17:42:30.336: E/AndroidRuntime(24346): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
08-11 17:42:30.336: E/AndroidRuntime(24346): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:609)
08-11 17:42:30.336: E/AndroidRuntime(24346): at dalvik.system.NativeStart.main(Native Method)

阅读 3.3k
2 个回答

又是七牛,你确定引入了七牛的 jar 包?

如果是使用gradle请在编译脚本的dependencies下加compile fileTree(dir: 'libs', include: '*.jar'),如

dependencies {
    compile fileTree(dir: 'libs', include: '*.jar')
}
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题