03-10 11:37:02.446: W/dalvikvm(2053): threadid=1: thread exiting with uncaught exception (group=0x40015560)
03-10 11:37:02.476: E/AndroidRuntime(2053): FATAL EXCEPTION: main
03-10 11:37:02.476: E/AndroidRuntime(2053): java.lang.VerifyError: org.crazyit.weibo.util.OAuth
03-10 11:37:02.476: E/AndroidRuntime(2053): at org.crazyit.weibo.AuthActivity$1.onClick(AuthActivity.java:50)
03-10 11:37:02.476: E/AndroidRuntime(2053): at android.view.View.performClick(View.java:2485)
03-10 11:37:02.476: E/AndroidRuntime(2053): at android.view.View$PerformClick.run(View.java:9080)
03-10 11:37:02.476: E/AndroidRuntime(2053): at android.os.Handler.handleCallback(Handler.java:587)
03-10 11:37:02.476: E/AndroidRuntime(2053): at android.os.Handler.dispatchMessage(Handler.java:92)
03-10 11:37:02.476: E/AndroidRuntime(2053): at android.os.Looper.loop(Looper.java:123)
03-10 11:37:02.476: E/AndroidRuntime(2053): at android.app.ActivityThread.main(ActivityThread.java:3683)
03-10 11:37:02.476: E/AndroidRuntime(2053): at java.lang.reflect.Method.invokeNative(Native Method)
03-10 11:37:02.476: E/AndroidRuntime(2053): at java.lang.reflect.Method.invoke(Method.java:507)
03-10 11:37:02.476: E/AndroidRuntime(2053): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
03-10 11:37:02.476: E/AndroidRuntime(2053): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
03-10 11:37:02.476: E/AndroidRuntime(2053): at dalvik.system.NativeStart.main(Native Method)
03-10 11:39:35.518: I/dalvikvm(2257): Could not find method oauth.signpost.OAuthProvider.setOAuth10a, referenced from method org.crazyit.weibo.util.OAuth.getAccessToken
03-10 11:39:35.518: W/dalvikvm(2257): VFY: unable to resolve interface method 249: Loauth/signpost/OAuthProvider;.setOAuth10a (Z)V
03-10 11:39:35.518: W/dalvikvm(2257): VFY: unable to resolve exception class 132 (Loauth/signpost/exception/OAuthMessageSignerException;)
03-10 11:39:35.526: W/dalvikvm(2257): VFY: unable to find exception handler at addr 0x3b
03-10 11:39:35.526: W/dalvikvm(2257): VFY: rejected Lorg/crazyit/weibo/util/OAuth;.getAccessToken (Landroid/content/Intent;)Lorg/crazyit/weibo/bean/UserInfo;
03-10 11:39:35.526: W/dalvikvm(2257): VFY: rejecting opcode 0x0d at 0x003b
03-10 11:39:35.526: W/dalvikvm(2257): VFY: rejected Lorg/crazyit/weibo/util/OAuth;.getAccessToken (Landroid/content/Intent;)Lorg/crazyit/weibo/bean/UserInfo;
03-10 11:39:35.526: W/dalvikvm(2257): Verifier rejected class Lorg/crazyit/weibo/util/OAuth;
03-10 11:39:35.526: W/dalvikvm(2257): threadid=1: thread exiting with uncaught exception (group=0x40015560)
03-10 11:39:35.546: E/AndroidRuntime(2257): FATAL EXCEPTION: main
03-10 11:39:35.546: E/AndroidRuntime(2257): java.lang.VerifyError: org.crazyit.weibo.util.OAuth
03-10 11:39:35.546: E/AndroidRuntime(2257): at org.crazyit.weibo.AuthActivity$1.onClick(AuthActivity.java:50)
03-10 11:39:35.546: E/AndroidRuntime(2257): at android.view.View.performClick(View.java:2485)
03-10 11:39:35.546: E/AndroidRuntime(2257): at android.view.View$PerformClick.run(View.java:9080)
03-10 11:39:35.546: E/AndroidRuntime(2257): at android.os.Handler.handleCallback(Handler.java:587)
03-10 11:39:35.546: E/AndroidRuntime(2257): at android.os.Handler.dispatchMessage(Handler.java:92)
03-10 11:39:35.546: E/AndroidRuntime(2257): at android.os.Looper.loop(Looper.java:123)
03-10 11:39:35.546: E/AndroidRuntime(2257): at android.app.ActivityThread.main(ActivityThread.java:3683)
03-10 11:39:35.546: E/AndroidRuntime(2257): at java.lang.reflect.Method.invokeNative(Native Method)
03-10 11:39:35.546: E/AndroidRuntime(2257): at java.lang.reflect.Method.invoke(Method.java:507)
03-10 11:39:35.546: E/AndroidRuntime(2257): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
03-10 11:39:35.546: E/AndroidRuntime(2257): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
03-10 11:39:35.546: E/AndroidRuntime(2257): at dalvik.system.NativeStart.main(Native Method)
03-10 11:42:25.317: I/dalvikvm(2496): Could not find method oauth.signpost.OAuthProvider.setOAuth10a, referenced from method org.crazyit.weibo.util.OAuth.getAccessToken
03-10 11:42:25.317: W/dalvikvm(2496): VFY: unable to resolve interface method 249: Loauth/signpost/OAuthProvider;.setOAuth10a (Z)V
03-10 11:42:25.327: W/dalvikvm(2496): VFY: unable to resolve exception class 132 (Loauth/signpost/exception/OAuthMessageSignerException;)
03-10 11:42:25.327: W/dalvikvm(2496): VFY: unable to find exception handler at addr 0x3b
03-10 11:42:25.327: W/dalvikvm(2496): VFY: rejected Lorg/crazyit/weibo/util/OAuth;.getAccessToken (Landroid/content/Intent;)Lorg/crazyit/weibo/bean/UserInfo;
03-10 11:42:25.327: W/dalvikvm(2496): VFY: rejecting opcode 0x0d at 0x003b
03-10 11:42:25.337: W/dalvikvm(2496): VFY: rejected Lorg/crazyit/weibo/util/OAuth;.getAccessToken (Landroid/content/Intent;)Lorg/crazyit/weibo/bean/UserInfo;
03-10 11:42:25.337: W/dalvikvm(2496): Verifier rejected class Lorg/crazyit/weibo/util/OAuth;
03-10 11:42:25.347: W/dalvikvm(2496): threadid=1: thread exiting with uncaught exception (group=0x40015560)
03-10 11:42:25.347: E/AndroidRuntime(2496): FATAL EXCEPTION: main
03-10 11:42:25.347: E/AndroidRuntime(2496): java.lang.VerifyError: org.crazyit.weibo.util.OAuth
03-10 11:42:25.347: E/AndroidRuntime(2496): at org.crazyit.weibo.AuthActivity$1.onClick(AuthActivity.java:50)
03-10 11:42:25.347: E/AndroidRuntime(2496): at android.view.View.performClick(View.java:2485)
03-10 11:42:25.347: E/AndroidRuntime(2496): at android.view.View$PerformClick.run(View.java:9080)
03-10 11:42:25.347: E/AndroidRuntime(2496): at android.os.Handler.handleCallback(Handler.java:587)
03-10 11:42:25.347: E/AndroidRuntime(2496): at android.os.Handler.dispatchMessage(Handler.java:92)
03-10 11:42:25.347: E/AndroidRuntime(2496): at android.os.Looper.loop(Looper.java:123)
03-10 11:42:25.347: E/AndroidRuntime(2496): at android.app.ActivityThread.main(ActivityThread.java:3683)
03-10 11:42:25.347: E/AndroidRuntime(2496): at java.lang.reflect.Method.invokeNative(Native Method)
03-10 11:42:25.347: E/AndroidRuntime(2496): at java.lang.reflect.Method.invoke(Method.java:507)
03-10 11:42:25.347: E/AndroidRuntime(2496): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
03-10 11:42:25.347: E/AndroidRuntime(2496): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
03-10 11:42:25.347: E/AndroidRuntime(2496): at dalvik.system.NativeStart.main(Native Method)
03-10 11:47:25.457: I/Process(2496): Sending signal. PID: 2496 SIG: 9
xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.crazyit.weibo"
android:versionCode="1"
android:versionName="1.0">
<uses-sdk android:minSdkVersion="10"
android:targetSdkVersion="18"
android:maxSdkVersion = "18" />
<!-- 指定junit测试的入口
android:targetPackage 指定测试目标包 (注意这个包需要和 package 包一致)
-->
<instrumentation android:name="android.test.InstrumentationTestRunner"
android:targetPackage="org.crazyit.weibo"/>
<!-- 访问网络的权限 -->
<uses-permission android:name="android.permission.INTERNET"/>
<!-- 访问网络状态权限 -->
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
<!-- 相机权限 -->
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>
<!-- SDCard读写权限 -->
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<application android:icon="@drawable/icon"
android:allowBackup="true"
android:label="@string/app_name"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen">
<!-- 欢迎页面 -->
<activity android:name=".LoadActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<!--登录页面 -->
<activity android:name=".LoginActivity"/>
<!-- 授权页面 -->
<activity android:name=".AuthActivity"
android:exported="false"
android:launchMode="singleTask">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="crazyit" android:host="AuthActivity" />
</intent-filter>
</activity>
<!-- 主页 -->
<activity android:name=".HomeActivity"/>
<!-- 详情页 -->
<activity android:name=".ContentActivity"/>
<!-- 用户信息展现 -->
<activity android:name=".UserInfoActivity"/>
<!-- writer -->
<activity android:name=".WriterWeiboActivity"
android:configChanges="keyboardHidden|orientation"
android:screenOrientation="portrait"
>
</activity>
<!-- 引入junit测试框架依赖包 -->
<uses-library android:name="android.test.runner"></uses-library>
</application>
</manifest>
3 个解决方案
#1
你代码里用到了
Intent intent = new Intent();
intent.setClass(LoginAct.this, Main.class);
startActivity(intent);
LoginAct.this.finish();
没有配置跳转的试图啊,就是在AndroidManifest.xml里面配置一个activity,比如:
<activity
android:name="包名.LoginAct"
android:screenOrientation="landscape" >
</activity>
<activity
android:name="包名.Main"
android:screenOrientation="landscape" >
</activity>
Intent intent = new Intent();
intent.setClass(LoginAct.this, Main.class);
startActivity(intent);
LoginAct.this.finish();
没有配置跳转的试图啊,就是在AndroidManifest.xml里面配置一个activity,比如:
<activity
android:name="包名.LoginAct"
android:screenOrientation="landscape" >
</activity>
<activity
android:name="包名.Main"
android:screenOrientation="landscape" >
</activity>
#2
什么东西 什么东西
#3
#1
你代码里用到了
Intent intent = new Intent();
intent.setClass(LoginAct.this, Main.class);
startActivity(intent);
LoginAct.this.finish();
没有配置跳转的试图啊,就是在AndroidManifest.xml里面配置一个activity,比如:
<activity
android:name="包名.LoginAct"
android:screenOrientation="landscape" >
</activity>
<activity
android:name="包名.Main"
android:screenOrientation="landscape" >
</activity>
Intent intent = new Intent();
intent.setClass(LoginAct.this, Main.class);
startActivity(intent);
LoginAct.this.finish();
没有配置跳转的试图啊,就是在AndroidManifest.xml里面配置一个activity,比如:
<activity
android:name="包名.LoginAct"
android:screenOrientation="landscape" >
</activity>
<activity
android:name="包名.Main"
android:screenOrientation="landscape" >
</activity>
#2
什么东西 什么东西