you were right, I moved the mainactivity to the src folder. but now I’m getting the following errors when I run the emulator :
04-18 19:00:31.608: W/dalvikvm(330): Exception Ljava/lang/UnsatisfiedLinkError; thrown while initializing Lcom/ansca/corona/JavaToNativeShim; 04-18 19:00:31.608: W/dalvikvm(330): Exception Ljava/lang/ExceptionInInitializerError; thrown while initializing Lcom/ansca/corona/CoronaEnvironment; 04-18 19:00:31.618: D/AndroidRuntime(330): Shutting down VM 04-18 19:00:31.618: W/dalvikvm(330): threadid=1: thread exiting with uncaught exception (group=0x40015560) 04-18 19:00:31.658: E/AndroidRuntime(330): FATAL EXCEPTION: main 04-18 19:00:31.658: E/AndroidRuntime(330): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.app/com.example.app.MainActivity}: android.view.InflateException: Binary XML file line #11: Error inflating class com.ansca.corona.CoronaView 04-18 19:00:31.658: E/AndroidRuntime(330): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1647) 04-18 19:00:31.658: E/AndroidRuntime(330): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663) 04-18 19:00:31.658: E/AndroidRuntime(330): at android.app.ActivityThread.access$1500(ActivityThread.java:117) 04-18 19:00:31.658: E/AndroidRuntime(330): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931) 04-18 19:00:31.658: E/AndroidRuntime(330): at android.os.Handler.dispatchMessage(Handler.java:99) 04-18 19:00:31.658: E/AndroidRuntime(330): at android.os.Looper.loop(Looper.java:123) 04-18 19:00:31.658: E/AndroidRuntime(330): at android.app.ActivityThread.main(ActivityThread.java:3683) 04-18 19:00:31.658: E/AndroidRuntime(330): at java.lang.reflect.Method.invokeNative(Native Method) 04-18 19:00:31.658: E/AndroidRuntime(330): at java.lang.reflect.Method.invoke(Method.java:507) 04-18 19:00:31.658: E/AndroidRuntime(330): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839) 04-18 19:00:31.658: E/AndroidRuntime(330): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597) 04-18 19:00:31.658: E/AndroidRuntime(330): at dalvik.system.NativeStart.main(Native Method) 04-18 19:00:31.658: E/AndroidRuntime(330): Caused by: android.view.InflateException: Binary XML file line #11: Error inflating class com.ansca.corona.CoronaView 04-18 19:00:31.658: E/AndroidRuntime(330): at android.view.LayoutInflater.createView(LayoutInflater.java:518) 04-18 19:00:31.658: E/AndroidRuntime(330): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:570) 04-18 19:00:31.658: E/AndroidRuntime(330): at android.view.LayoutInflater.rInflate(LayoutInflater.java:623) 04-18 19:00:31.658: E/AndroidRuntime(330): at android.view.LayoutInflater.inflate(LayoutInflater.java:408) 04-18 19:00:31.658: E/AndroidRuntime(330): at android.view.LayoutInflater.inflate(LayoutInflater.java:320) 04-18 19:00:31.658: E/AndroidRuntime(330): at com.example.app.MainActivity$PlaceholderFragment.onCreateView(MainActivity.java:63) 04-18 19:00:31.658: E/AndroidRuntime(330): at android.support.v4.app.Fragment.performCreateView(Fragment.java:1500) 04-18 19:00:31.658: E/AndroidRuntime(330): at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:938) 04-18 19:00:31.658: E/AndroidRuntime(330): at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1115) 04-18 19:00:31.658: E/AndroidRuntime(330): at android.support.v4.app.BackStackRecord.run(BackStackRecord.java:682) 04-18 19:00:31.658: E/AndroidRuntime(330): at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1478) 04-18 19:00:31.658: E/AndroidRuntime(330): at android.support.v4.app.FragmentActivity.onStart(FragmentActivity.java:570) 04-18 19:00:31.658: E/AndroidRuntime(330): at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1129) 04-18 19:00:31.658: E/AndroidRuntime(330): at android.app.Activity.performStart(Activity.java:3791) 04-18 19:00:31.658: E/AndroidRuntime(330): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1620) 04-18 19:00:31.658: E/AndroidRuntime(330): ... 11 more 04-18 19:00:31.658: E/AndroidRuntime(330): Caused by: java.lang.reflect.InvocationTargetException 04-18 19:00:31.658: E/AndroidRuntime(330): at java.lang.reflect.Constructor.constructNative(Native Method) 04-18 19:00:31.658: E/AndroidRuntime(330): at java.lang.reflect.Constructor.newInstance(Constructor.java:415) 04-18 19:00:31.658: E/AndroidRuntime(330): at android.view.LayoutInflater.createView(LayoutInflater.java:505) 04-18 19:00:31.658: E/AndroidRuntime(330): ... 25 more 04-18 19:00:31.658: E/AndroidRuntime(330): Caused by: java.lang.ExceptionInInitializerError 04-18 19:00:31.658: E/AndroidRuntime(330): at com.ansca.corona.CoronaView.internalInit(CoronaView.java:66) 04-18 19:00:31.658: E/AndroidRuntime(330): at com.ansca.corona.CoronaView.\<init\>(CoronaView.java:56) 04-18 19:00:31.658: E/AndroidRuntime(330): ... 28 more 04-18 19:00:31.658: E/AndroidRuntime(330): Caused by: java.lang.ExceptionInInitializerError 04-18 19:00:31.658: E/AndroidRuntime(330): at com.ansca.corona.CoronaEnvironment.setLuaErrorHandler(CoronaEnvironment.java:322) 04-18 19:00:31.658: E/AndroidRuntime(330): at com.ansca.corona.CoronaEnvironment.\<clinit\>(CoronaEnvironment.java:50) 04-18 19:00:31.658: E/AndroidRuntime(330): ... 30 more 04-18 19:00:31.658: E/AndroidRuntime(330): Caused by: java.lang.UnsatisfiedLinkError: Couldn't load lua: findLibrary returned null 04-18 19:00:31.658: E/AndroidRuntime(330): at java.lang.Runtime.loadLibrary(Runtime.java:429) 04-18 19:00:31.658: E/AndroidRuntime(330): at java.lang.System.loadLibrary(System.java:554) 04-18 19:00:31.658: E/AndroidRuntime(330): at com.ansca.corona.JavaToNativeShim.\<clinit\>(JavaToNativeShim.java:117) 04-18 19:00:31.658: E/AndroidRuntime(330): ... 32 more
this is my manifest.xml
\<?xml version="1.0" encoding="utf-8"?\> \<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.app" \> \<uses-sdk android:targetSdkVersion="19" android:minSdkVersion="10"/\> \<application android:allowBackup="true" android:icon="@drawable/ic\_launcher" android:label="@string/app\_name" android:theme="@style/AppTheme" \> \<activity android:name="com.example.app.MainActivity" android:label="@string/app\_name" \> \<intent-filter\> \<action android:name="android.intent.action.MAIN" /\> \<category android:name="android.intent.category.LAUNCHER" /\> \</intent-filter\> \</activity\> \</application\> \</manifest\>
the java buildpath
and my folder structure