android 调用微博时出错 20
异常代码:06-0111:41:01.980:E/AndroidRuntime(9072):Causedby:android.content.ActivityNotFou...
异常代码:
06-01 11:41:01.980: E/AndroidRuntime(9072): Caused by: android.content.ActivityNotFoundException: Unable to find explicit activity class {lzhd.life.game/com.weibo.net.ShareActivity}; have you declared this activity in your AndroidManifest.xml?
06-01 11:41:01.980: E/AndroidRuntime(9072): at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1563)
06-01 11:41:01.980: E/AndroidRuntime(9072): at android.app.Instrumentation.execStartActivity(Instrumentation.java:1537)
06-01 11:41:01.980: E/AndroidRuntime(9072): at android.app.Activity.startActivityForResult(Activity.java:2858)
06-01 11:41:01.980: E/AndroidRuntime(9072): at android.app.Activity.startActivity(Activity.java:2964)
06-01 11:41:01.980: E/AndroidRuntime(9072): at com.weibo.net.Weibo.share2weibo(Weibo.java:244)
希望大神解决啊 展开
06-01 11:41:01.980: E/AndroidRuntime(9072): Caused by: android.content.ActivityNotFoundException: Unable to find explicit activity class {lzhd.life.game/com.weibo.net.ShareActivity}; have you declared this activity in your AndroidManifest.xml?
06-01 11:41:01.980: E/AndroidRuntime(9072): at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1563)
06-01 11:41:01.980: E/AndroidRuntime(9072): at android.app.Instrumentation.execStartActivity(Instrumentation.java:1537)
06-01 11:41:01.980: E/AndroidRuntime(9072): at android.app.Activity.startActivityForResult(Activity.java:2858)
06-01 11:41:01.980: E/AndroidRuntime(9072): at android.app.Activity.startActivity(Activity.java:2964)
06-01 11:41:01.980: E/AndroidRuntime(9072): at com.weibo.net.Weibo.share2weibo(Weibo.java:244)
希望大神解决啊 展开
3个回答
展开全部
你的Activity com.weibo.net.ShareActivity 没有在AndroidManifest.xml文件声明,或者是声明的时候包不对,也有可能是名字打错了!你去检查下,不是调用不了!错误给的很明显了
android.content.ActivityNotFoundException: Unable to find explicit activity class {lzhd.life.game/com.weibo.net.ShareActivity}; have you declared this activity in your AndroidManifest.xml?
android.content.ActivityNotFoundException: Unable to find explicit activity class {lzhd.life.game/com.weibo.net.ShareActivity}; have you declared this activity in your AndroidManifest.xml?
追问
回了这句还是不行,提示末授权的客户端
追答
?什么是未授权的客户端?你把错误信息沾上来!
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
不是都提示你了吗?com.weibo.net.ShareActivity, 这个在manifest文件里面没有定义。
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
com.weibo.net.ShareActivity, 这个在manifest文件里面没有定义。
在Androidmanifest.xml里增加这个activity的定义就就好了。。。
在Androidmanifest.xml里增加这个activity的定义就就好了。。。
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询