ActivityNotFoundException:未找到可处理意向活动 [英] ActivityNotFoundException: No Activity found to handle Intent

查看:272
本文介绍了ActivityNotFoundException:未找到可处理意向活动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这个报告我从谷歌recive玩,我的应用程序崩溃:

This report I recive from google play, my app crash on :

  android.content.ActivityNotFoundException: No Activity found to handle Intent { act=com.google.android.gms.common.account.CHOOSE_ACCOUNT (has extras) }
at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1518)
at android.app.Instrumentation.execStartActivity(Instrumentation.java:1390)
at android.app.Activity.startActivityForResult(Activity.java:3204)
at com.example.uploadvideo.MainUploadToYoutube.authenticate(MainUploadToYoutube.java:287)
at com.example.uploadvideo.MainUploadToYoutube.onOptionsItemSelected(MainUploadToYoutube.java:211)
at android.app.Activity.onMenuItemSelected(Activity.java:2516)
at com.android.internal.policy.impl.PhoneWindow.onMenuItemSelected(PhoneWindow.java:965)
at com.android.internal.view.menu.MenuBuilder.dispatchMenuItemSelected(MenuBuilder.java:735)
at com.android.internal.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:149)
at com.android.internal.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:874)
at com.android.internal.view.menu.IconMenuView.invokeItem(IconMenuView.java:468)
at com.android.internal.view.menu.IconMenuItemView.performClick(IconMenuItemView.java:126)
at android.view.View$PerformClick.run(View.java:14155)
at android.os.Handler.handleCallback(Handler.java:605)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4508)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:809)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:576)
at dalvik.system.NativeStart.main(Native Method)

com.example.uploadvideo.MainUploadToYoutube 我有这个methood:

in com.example.uploadvideo.MainUploadToYoutube I have this methood :

public void authenticate() {
    Intent accountChooserIntent =
        AccountPicker.newChooseAccountIntent(null, null,
            new String[] {GoogleAuthUtil.GOOGLE_ACCOUNT_TYPE}, true, "Select an account", null,
            null, null);
    startActivityForResult(accountChooserIntent, REQUEST_PICK_ACCOUNT);
  }



 case REQUEST_PICK_ACCOUNT:
        if (resultCode == RESULT_OK) {
          mChosenAccountName = data.getStringExtra(AccountManager.KEY_ACCOUNT_NAME);
          tryAuthenticate();
        }

我觉得这些<一个href=\"http://stackoverflow.com/questions/15614561/android-content-activitynotfoundexception-no-activity-found-to-handle-intent-sp\">similar帖子中,<一个href=\"http://stackoverflow.com/questions/10880026/how-to-solve-no-activity-found-to-handle-intent-error\">How解决

从这些文章中,我明白,我需要重写的意图,并添加活动清单是吗???

from these post I understand that I need to rewrite the intent and add activity to the manifest am I right ???

推荐答案

由于您使用的是谷歌播放服务组件(AccountPicker),你需要确保谷歌播放服务存在且之前最新的用户设备上调用使用该服务作为安装指南解释方法。

As you are using a Google Play Services component (the AccountPicker), you need to ensure that Google Play Services exists and is up to date on the users device before calling methods that use the service as explained in the setup guide.

这篇关于ActivityNotFoundException:未找到可处理意向活动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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