I got the error in console while working with facebook sdk
samples.I have checked the logcat.The error in logcat
and console
is given below.
In Console:
[2013-12-05 17:36:05 - FriendPickerSample] Installation failed due to invalid APK file! [2013-12-05 17:36:05 - FriendPickerSample] Please check logcat output for more details. [2013-12-05 17:36:05 - FriendPickerSample] Launch canceled
In Logcat:
12-05 17:42:02.617: W/PackageParser(582): Unable to read AndroidManifest.xml of /data/local/tmp/FriendPickerSample.apk 12-05 17:42:02.617: W/PackageParser(582): java.io.FileNotFoundException: AndroidManifest.xml 12-05 17:42:02.617: W/PackageParser(582): at android.content.res.AssetManager.openXmlAssetNative(Native Method) 12-05 17:42:02.617: W/PackageParser(582): at android.content.res.AssetManager.openXmlBlockAsset(AssetManager.java:487) 12-05 17:42:02.617: W/PackageParser(582): at android.content.res.AssetManager.openXmlResourceParser(AssetManager.java:455) 12-05 17:42:02.617: W/PackageParser(582): at android.content.pm.PackageParser.parsePackageLite(PackageParser.java:722) 12-05 17:42:02.617: W/PackageParser(582): at com.android.defcontainer.DefaultContainerService$1.getMinimalPackageInfo(DefaultContainerService.java:169) 12-05 17:42:02.617: W/PackageParser(582): at com.android.internal.app.IMediaContainerService$Stub.onTransact(IMediaContainerService.java:110) 12-05 17:42:02.617: W/PackageParser(582): at android.os.Binder.execTransact(Binder.java:367) 12-05 17:42:02.617: W/PackageParser(582): at dalvik.system.NativeStart.run(Native Method) 12-05 17:42:02.617: W/DefContainer(582): Failed to parse package 12-05 17:42:02.627: W/ActivityManager(169): No content provider found for permission revoke: file:///data/local/tmp/FriendPickerSample.apk
I had same issue while working with Samples provided with Facebook SDK. Finally I figured out issue by following these steps.
Also if someone looking for a simplest solution for facebook integration then i will prefer to use Simple Facebook SDK.
I stumbled on this error few times during my Facebook sample application tests. What you should do and helped me is:
Change the Project build Target API using -> Right Click on the project -> Properties -> Android.
Go to the bin folder of the project in it delete the already created apk file and then try to run the project again.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With