且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

安卓:无法找到com.facebook.wakizashi.provider.PlatformProvider供应商信息

更新时间:2023-01-19 08:57:39

我注意到,这些logcat的错误:

  ...
E / ActivityThread:未能找到com.facebook.katana.provider.PlatformProvider供应商信息
E / ActivityThread:未能找到com.facebook.wakizashi.provider.PlatformProvider供应商信息
...
 

出现只有当您没有安装在你的模拟器Facebook的APK。在安装这样的FB APP应用程序:

 的Macintosh:平台工具ADMIN $ ./adb安装〜/下载/ Facebook- [版本号]的apk
758 KB /秒(以52.574s 40857788字节)
        PKG:/data/local/tmp/Facebook-32.0.0.23.15.apk
成功
 

这些类型的错误应该消失。

祝你好运!

I am stuck for days now. I am using the PhotoShareDialogBuilder in facebook. I used the content provider something like this :

<provider android:authorities="com.facebook.app.NativeAppCallContentProvider*****************"
                  android:name="com.facebook.NativeAppCallContentProvider"
                  android:exported="true"/>

But, it gives me the error whenever the code gets executed. Someone please help me out. I don't want to use any other api like simple facebook etc. The error i receive in the logcat is : 09-06 13:56:14.575: E/ActivityThread(4202): Failed to find provider info for com.facebook.wakizashi.provider.PlatformProvider.

My code :

 boolean canPresentShareDialogWithPhotos = FacebookDialog.canPresentShareDialog(this,
                        FacebookDialog.ShareDialogFeature.PHOTOS);


                if (canPresentShareDialogWithPhotos) {
                    FacebookDialog shareDialog = createShareDialogBuilderForPhoto(image).build();
                    uiHelper.trackPendingDialogCall(shareDialog.present());
                }  

private FacebookDialog.PhotoShareDialogBuilder createShareDialogBuilderForPhoto(Bitmap... photos) {
    return new FacebookDialog.PhotoShareDialogBuilder(this)
            .addPhotos(image);
}

I noticed that these logcat errors:

...
E/ActivityThread﹕ Failed to find provider info for com.facebook.katana.provider.PlatformProvider
E/ActivityThread﹕ Failed to find provider info for com.facebook.wakizashi.provider.PlatformProvider
...

appear only if you do not have the Facebook APK installed on your emulator. After you install the FB APP app like this:

Macintosh:platform-tools admin$ ./adb install ~/Downloads/Facebook-[Version Number].apk 
758 KB/s (40857788 bytes in 52.574s)
        pkg: /data/local/tmp/Facebook-32.0.0.23.15.apk
Success

These type of errors should disappear.

Good luck !