Bug 14813 - facebook sdk 3.0.1. error when the facebook SDK tries to open a resource included in the LibraryProject
Summary: facebook sdk 3.0.1. error when the facebook SDK tries to open a resource incl...
Status: RESOLVED INVALID
Alias: None
Product: Android
Classification: Xamarin
Component: Bindings ()
Version: 4.8.x
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Atsushi Eno
URL:
Depends on:
Blocks:
 
Reported: 2013-09-17 13:17 UTC by Jon Goldberger [MSFT]
Modified: 2013-09-18 04:52 UTC (History)
2 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
Test project (449.85 KB, application/zip)
2013-09-17 13:17 UTC, Jon Goldberger [MSFT]
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED INVALID

Description Jon Goldberger [MSFT] 2013-09-17 13:17:19 UTC
Created attachment 4915 [details]
Test project

I am currently having a resource problem with a LibraryProjectZip of the
facebook sdk 3.0.1. The error happens when the facebook SDK tries to open a
resource included in the LibraryProjectZip:




09-13 11:35:29.969 W/dalvikvm(11767): VFY: unable to resolve static field
1708 (com_facebook_login_activity_layout) in Lcom/facebook/android/R$layout;

09-13 11:35:29.969 D/dalvikvm(11767): VFY: replacing opcode 0x60 at 0x0003

09-13 11:35:29.969 W/dalvikvm(11767): VFY: unable to resolve static field
1690 (com_facebook_login_activity_progress_bar) in
Lcom/facebook/android/R$id;

09-13 11:35:29.969 D/dalvikvm(11767): VFY: replacing opcode 0x60 at 0x0008

09-13 11:35:30.189 I/Choreographer(11767): Skipped 84 frames! The
application may be doing too much work on its main thread.

09-13 11:35:30.279 D/AndroidRuntime(11767): Shutting down VM

09-13 11:35:30.279 W/dalvikvm(11767): threadid=1: thread exiting with
uncaught exception (group=0x4154f700)

09-13 11:35:30.289 E/AndroidRuntime(11767): FATAL EXCEPTION: main

09-13 11:35:30.289 E/AndroidRuntime(11767): java.lang.NoClassDefFoundError:
com.facebook.android.R$layout

09-13 11:35:30.289 E/AndroidRuntime(11767): at
com.facebook.LoginActivity.onCreate(LoginActivity.java:55)

09-13 11:35:30.289 E/AndroidRuntime(11767): at
android.app.Activity.performCreate(Activity.java:5133)

09-13 11:35:30.289 E/AndroidRuntime(11767): at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)

09-13 11:35:30.289 E/AndroidRuntime(11767): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2293)

09-13 11:35:30.289 E/AndroidRuntime(11767): at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2389)

09-13 11:35:30.289 E/AndroidRuntime(11767): at
android.app.ActivityThread.access$600(ActivityThread.java:153)

09-13 11:35:30.289 E/AndroidRuntime(11767): at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1269)

09-13 11:35:30.289 E/AndroidRuntime(11767): at
android.os.Handler.dispatchMessage(Handler.java:99)

09-13 11:35:30.289 E/AndroidRuntime(11767): at
android.os.Looper.loop(Looper.java:137)

09-13 11:35:30.289 E/AndroidRuntime(11767): at
android.app.ActivityThread.main(ActivityThread.java:5289)

09-13 11:35:30.289 E/AndroidRuntime(11767): at
java.lang.reflect.Method.invokeNative(Native Method)

09-13 11:35:30.289 E/AndroidRuntime(11767): at
java.lang.reflect.Method.invoke(Method.java:525)

09-13 11:35:30.289 E/AndroidRuntime(11767): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:7
39)

09-13 11:35:30.289 E/AndroidRuntime(11767): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:555)

09-13 11:35:30.289 E/AndroidRuntime(11767): at
dalvik.system.NativeStart.main(Native Method)



My zip file is included as an attachment, in case you want to check the
format and the content.



When I build my application, I get the following log:




...

- Not remapping resource: Layout.com_facebook_friendpickerfragment

- Not remapping resource: Layout.com_facebook_login_activity_layout

- Not remapping resource: Layout.com_facebook_picker_activity_circle_row

- Not remapping resource: Layout.com_facebook_picker_checkbox

...

========================================================================================
version info:


Microsoft Visual Studio 2010
Version 10.0.40219.1 SP1Rel
Microsoft .NET Framework
Version 4.5.50709 SP1Rel

Installed Version: Ultimate

Microsoft Visual C# 2010   01019-532-2002102-70929
Microsoft Visual C# 2010

Microsoft Visual C++ 2010   01019-532-2002102-70929
Microsoft Visual C++ 2010

Microsoft Visual Studio 2010 Architecture and Modeling Tools   01019-532-2002102-70929
Microsoft Visual Studio 2010 Architecture and Modeling Tools
    
UML® and Unified Modeling Language™ are trademarks or registered trademarks of the Object Management Group, Inc. in the United States and other countries.

Microsoft Visual Studio 2010 Code Analysis Spell Checker   01019-532-2002102-70929
Microsoft Visual Studio 2010 Code Analysis Spell Checker

Portions of International CorrectSpell™ spelling correction system © 1993 by Lernout & Hauspie Speech Products N.V. All rights reserved.

The American Heritage® Dictionary of the English Language, Third Edition Copyright © 1992 Houghton Mifflin Company. Electronic version licensed from Lernout & Hauspie Speech Products N.V. All rights reserved.

Microsoft Visual Studio 2010 Team Explorer   01019-532-2002102-70929
Microsoft Visual Studio 2010 Team Explorer

Microsoft Visual Web Developer 2010   01019-532-2002102-70929
Microsoft Visual Web Developer 2010

Crystal Reports Templates for Microsoft Visual Studio 2010   
Crystal Reports Templates for Microsoft Visual Studio 2010

Hotfix for Microsoft Visual Studio 2010 Ultimate - ENU (KB2529927)   KB2529927
This hotfix is for Microsoft Visual Studio 2010 Ultimate - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/2529927.

Hotfix for Microsoft Visual Studio 2010 Ultimate - ENU (KB2548139)   KB2548139
This hotfix is for Microsoft Visual Studio 2010 Ultimate - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/2548139.

Hotfix for Microsoft Visual Studio 2010 Ultimate - ENU (KB2549864)   KB2549864
This hotfix is for Microsoft Visual Studio 2010 Ultimate - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/2549864.

Hotfix for Microsoft Visual Studio 2010 Ultimate - ENU (KB2565057)   KB2565057
This hotfix is for Microsoft Visual Studio 2010 Ultimate - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/2565057.

Hotfix for Microsoft Visual Studio 2010 Ultimate - ENU (KB2635973)   KB2635973
This hotfix is for Microsoft Visual Studio 2010 Ultimate - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/2635973.

Hotfix for Microsoft Visual Studio 2010 Ultimate - ENU (KB2736182)   KB2736182
This hotfix is for Microsoft Visual Studio 2010 Ultimate - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/2736182.

Hotfix for Microsoft Visual Studio 2010 Ultimate - ENU (KB2813041)   KB2813041
This hotfix is for Microsoft Visual Studio 2010 Ultimate - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/2813041.

Microsoft Visual Studio 2010 Ultimate - ENU Service Pack 1 (KB983509)   KB983509
This service pack is for Microsoft Visual Studio 2010 Ultimate - ENU.
If you later install a more recent service pack, this service pack will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/983509.

Security Update for Microsoft Visual Studio 2010 Ultimate - ENU (KB2645410)   KB2645410
This security update is for Microsoft Visual Studio 2010 Ultimate - ENU.
If you later install a more recent service pack, this security update will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/2645410.

Visual Assist X   
For more information about Visual Assist X, see the Whole Tomato Software website at http://www.WholeTomato.com. Copyright (c) 1997-2010 Whole Tomato Software, Inc.

VisualSVN   2.5.5
Integration with Subversion version control. For more information about VisualSVN, see the VisualSVN website at http://www.visualsvn.com
Copyright © 2005-2012 VisualSVN Ltd. All rights reserved.

Xamarin.Android   4.8.02057 (bdc709d1)
Visual Studio plugin to enable development for Xamarin.Android.

Xamarin.iOS   1.3.250 (49348a51)
Visual Studio extension to enable development for Xamarin.iOS

XamlGenerator   1.0
Information about my package
Comment 2 Jon Goldberger [MSFT] 2013-09-17 13:19:05 UTC
NOTE: if you do post on Facebook using the sample app, PLEASE DELETE THE POST as the app is not officially released yet.
Comment 3 Atsushi Eno 2013-09-18 04:52:35 UTC
Your "facebook-android-sdk-3.0.1.zip" is wrong. It does not seem to be valid archive of all required files. Namely bin/AndroidManifest.xml is missing, causing our build tool unable to retrieve the library's package name "com.facebook.android" and therefore it does not generate any Java resource for that package, which will result in exactly the same issue as reported above.