在类Android应用程序被拒绝 [英] Class Rejected in Android Application

查看:155
本文介绍了在类Android应用程序被拒绝的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以下是LogCat中输出的运行时异常我的Andr​​oid应用程序显示,首先wranings生成后跟堆栈跟踪,当应用程序退出:

The following is that LogCat output for the runtime exception my Android application is displaying, first the wranings generated followed by the stack trace when the application exited:

03-01 12:04:37.663: W/dalvikvm(2285): VFY: unable to resolve exception class 194 (Lcom/google/zxing/WriterException;)
03-01 12:04:37.663: W/dalvikvm(2285): VFY: unable to find exception handler at addr 0x4c
03-01 12:04:37.663: W/dalvikvm(2285): VFY:  rejected Lcom/beslogic/profile/BLProfileBuilder;.saveProfileAsQRCode (Landroid/app/Activity;Lcom/beslogic/profile/BLProfileModel;Ljava/io/FileOutputStream;)Z
03-01 12:04:37.663: W/dalvikvm(2285): VFY:  rejecting opcode 0x0d at 0x004c
03-01 12:04:37.663: W/dalvikvm(2285): VFY:  rejected Lcom/beslogic/profile/BLProfileBuilder;.saveProfileAsQRCode (Landroid/app/Activity;Lcom/beslogic/profile/BLProfileModel;Ljava/io/FileOutputStream;)Z
03-01 12:04:37.663: W/dalvikvm(2285): Verifier rejected class Lcom/beslogic/profile/BLProfileBuilder;





 03-01 12:07:31.633: E/AndroidRuntime(2285): FATAL EXCEPTION: main
    03-01 12:07:31.633: E/AndroidRuntime(2285): java.lang.VerifyError: com.beslogic.profile.BLProfileBuilder
    03-01 12:07:31.633: E/AndroidRuntime(2285):     at com.urbanagenda.UAMemberActivity.completeTransaction(UAMemberActivity.java:401)
    03-01 12:07:31.633: E/AndroidRuntime(2285):     at com.beslogic.remotpayment.connection.PostJSONTask.sendTransactionComplete(PostJSONTask.java:175)
    03-01 12:07:31.633: E/AndroidRuntime(2285):     at com.beslogic.remotpayment.connection.PostJSONTask.onPostExecute(PostJSONTask.java:162)
    03-01 12:07:31.633: E/AndroidRuntime(2285):     at com.beslogic.remotpayment.connection.PostJSONTask.onPostExecute(PostJSONTask.java:1)
    03-01 12:07:31.633: E/AndroidRuntime(2285):     at android.os.AsyncTask.finish(AsyncTask.java:417)
    03-01 12:07:31.633: E/AndroidRuntime(2285):     at android.os.AsyncTask.access$300(AsyncTask.java:127)
    03-01 12:07:31.633: E/AndroidRuntime(2285):     at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:429)
    03-01 12:07:31.633: E/AndroidRuntime(2285):     at android.os.Handler.dispatchMessage(Handler.java:99)
    03-01 12:07:31.633: E/AndroidRuntime(2285):     at android.os.Looper.loop(Looper.java:123)
    03-01 12:07:31.633: E/AndroidRuntime(2285):     at android.app.ActivityThread.main(ActivityThread.java:4627)
    03-01 12:07:31.633: E/AndroidRuntime(2285):     at java.lang.reflect.Method.invokeNative(Native Method)
    03-01 12:07:31.633: E/AndroidRuntime(2285):     at java.lang.reflect.Method.invoke(Method.java:521)
    03-01 12:07:31.633: E/AndroidRuntime(2285):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:893)
    03-01 12:07:31.633: E/AndroidRuntime(2285):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:651)
    03-01 12:07:31.633: E/AndroidRuntime(2285):     at dalvik.system.NativeStart.main(Native Method)

我有一个库项目,其中BLProfileBuilder生活。该项目引用斑马线Android项目,我已经标记为库项目也。也有到斑马线核心库的引用。一切都正常通过添加外部.jar文件引用。我的主要应用是针对Android的API级别8(2.2),而其他的目标2.1。任何提示如何去解决这一点。我按照斑马线项目页面上的所有指令和Android开发者指南添加库项目和第三方jar文件。

I have a library project where BLProfileBuilder lives. This project references the ZXING android project, which I have marked as a library project also. There is also a reference to the ZXING core library. Everything is properly reference by adding the external .jar files. My main application is targeting Android API level 8 (2.2) while the others are targeting 2.1. Any hints how to go about resolving this. I have followed all the instructions on the ZXING project page, and the Android developer guide for adding library projects and third party jar files.

我将如何着手解决此或跟踪误差?

How would I go about troubleshooting this or tracking down the error?

推荐答案

如果您搜索的VerifyError和Android在这里计算器,你会发现一些好文章可能帮助您开始是这样的:的Android java.lang.VerifyError?我怀疑你会发现,当高(但不接受)的回答表明,你在Java中使用的一些方法,不支持你的API级别。

If you search for VerifyError and Android here in StackOverflow you'll find some good posts that might help you get started like this: Android java.lang.VerifyError? I suspect you will find that as the high (but not accepted) answer suggests, you're using some method in Java that isn't supported for your API level.

这篇关于在类Android应用程序被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆