Using Cordova/Ionic,
I successfully installed the Android plugin for Facebook, following the commands at the bottom of this page.
Build successful => I then launched the command ionic run android
(equivalent to cordova run android
).
But at Runtime, I got this error:
W/PluginManager( 903): THREAD WARNING: exec() call to FacebookConnectPlugin.login blocked the main thread for 163ms. Plugin should use CordovaInterface.getThreadPool().
D/AndroidRuntime( 903): Shutting down VM
W/dalvikvm( 903): threadid=1: thread exiting with uncaught exception (group=0xb2a30ba8)
E/AndroidRuntime( 903): FATAL EXCEPTION: main
E/AndroidRuntime( 903): java.lang.NoClassDefFoundError: com.facebook.android.R$layout
Any idea how to fix it?