Hi guys, I was trying to do a build using the new refactored android Corona while updating a few libs, and was running into this error:
/AndroidRuntime(13772): FATAL EXCEPTION: main E/AndroidRuntime(13772): java.lang.NoClassDefFoundError: com.facebook.android.R$layout E/AndroidRuntime(13772): at com.facebook.LoginActivity.onCreate(LoginActivity.java:57) E/AndroidRuntime(13772): at android.app.Activity.performCreate(Activity.java:4465) E/AndroidRuntime(13772): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1053) E/AndroidRuntime(13772): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1934) E/AndroidRuntime(13772): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1995) E/AndroidRuntime(13772): at android.app.ActivityThread.access$600(ActivityThread.java:128) E/AndroidRuntime(13772): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1161) E/AndroidRuntime(13772): at android.os.Handler.dispatchMessage(Handler.java:99) E/AndroidRuntime(13772): at android.os.Looper.loop(Looper.java:137) E/AndroidRuntime(13772): at android.app.ActivityThread.main(ActivityThread.java:4514) E/AndroidRuntime(13772): at java.lang.reflect.Method.invokeNative(Native Method) E/AndroidRuntime(13772): at java.lang.reflect.Method.invoke(Method.java:511) E/AndroidRuntime(13772): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:790) E/AndroidRuntime(13772): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:557) E/AndroidRuntime(13772): at dalvik.system.NativeStart.main(Native Method)
Generally I have assumed that this error is related to my libs directory not being in order, so my guess is that I’m not putting the “resources” folder in the right place. Also, I’m not really sure what to do with that “package.txt” file. Below is my directory listing for the “libs” directory. Any ideas on where these things go, or what is causing the error?
coronaenterprise/projects/wheel/android/libs$ ls -l total 7872 -rw-r--r--@ 1 staff 95546 Jun 20 02:20 AdBuddiz-CoronaPlugin-2.3.3.jar -rw-r--r-- 1 staff 55321 Jul 17 18:07 CoronaProvider.ads.vungle.jar -rw-r--r-- 1 staff 65337 Jul 17 18:07 CoronaProvider.gameNetwork.google.jar -rwxr-xr-x@ 1 staff 1071657 Jun 1 22:12 FlurryAds-4.0.0.jar -rwxr-xr-x@ 1 staff 119077 Jun 1 22:12 FlurryAnalytics-4.0.0.jar -rwxr-xr-x@ 1 staff 242274 May 23 01:11 adcolony.jar -rw-r--r--@ 1 staff 758727 Sep 13 02:00 android-support-v4.jar -rw-r--r--@ 1 staff 46476 Sep 13 02:00 bolts-android-1.1.2.jar -rw-r--r--@ 1 staff 33737 Sep 13 02:00 facebook.jar -rw-r--r--@ 1 staff 514442 Sep 13 02:00 facebook\_sdk.jar -rw-r--r-- 1 staff 13662 Jul 17 18:07 gcm.jar -rw-r--r-- 1 staff 631957 Jul 17 18:07 google-play-services.jar -rw-r--r--@ 1 staff 20 Sep 10 10:21 package.txt -rw-r--r-- 1 staff 157857 Jul 17 18:07 plugin.sponsorpay.jar drwxr-xr-x@ 18 staff 612 Sep 23 15:13 res \*\*(from the FB plugin directory) -rw-r--r-- 1 staff 185088 Jul 17 18:07 vungle-publisher-1.3.11-corona.jar
Also, for reference I have this in my AndroidManifest.xml
\<activity android:name="com.facebook.LoginActivity" android:theme="@android:style/Theme.NoTitleBar.Fullscreen" android:configChanges="keyboardHidden|screenSize|orientation"/\> \<activity android:name="facebook.FacebookFragmentActivity" android:theme="@android:style/Theme.NoTitleBar.Fullscreen" android:configChanges="keyboardHidden|screenSize|orientation"/\>