Note that there are some explanatory texts on larger screens.

plurals
  1. POLibGdx Game is Not Running in android?
    primarykey
    data
    text
    <p>I am making a game using LibGdx framwork.This is working fine for dekstop but when try to run for android give exception:-</p> <pre><code> 12-03 10:39:46.687: E/AndroidRuntime(9487): FATAL EXCEPTION: main 12-03 10:39:46.687: E/AndroidRuntime(9487): java.lang.NoClassDefFoundError: com.inoXmobile.glowjump.SuperJumper 12-03 10:39:46.687: E/AndroidRuntime(9487): at com.inoXmobile.glowjump.GlowJupmAndroid.onCreate(GlowJupmAndroid.java:35) 12-03 10:39:46.687: E/AndroidRuntime(9487): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047) 12-03 10:39:46.687: E/AndroidRuntime(9487): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1615) 12-03 10:39:46.687: E/AndroidRuntime(9487): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1667) 12-03 10:39:46.687: E/AndroidRuntime(9487): at android.app.ActivityThread.access$1500(ActivityThread.java:117) 12-03 10:39:46.687: E/AndroidRuntime(9487): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:935) 12-03 10:39:46.687: E/AndroidRuntime(9487): at android.os.Handler.dispatchMessage(Handler.java:99) 12-03 10:39:46.687: E/AndroidRuntime(9487): at android.os.Looper.loop(Looper.java:130) 12-03 10:39:46.687: E/AndroidRuntime(9487): at android.app.ActivityThread.main(ActivityThread.java:3687) 12-03 10:39:46.687: E/AndroidRuntime(9487): at java.lang.reflect.Method.invokeNative(Native Method) 12-03 10:39:46.687: E/AndroidRuntime(9487): at java.lang.reflect.Method.invoke(Method.java:507) 12-03 10:39:46.687: E/AndroidRuntime(9487): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867) 12-03 10:39:46.687: E/AndroidRuntime(9487): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:625) 12-03 10:39:46.687: E/AndroidRuntime(9487): at dalvik.system.NativeStart.main(Native Method)I </code></pre> <p><strong>have put these jars and so file in android project libs folder:-</strong> **1- gdx.jar</p> <p>2-gdx-backend-android.jar</p> <p>3-armeabi</p> <p>4-armeabi-v7a**</p> <p><strong>My Android Activity is:-</strong></p> <pre><code>public class GlowJupmAndroid extends AndroidApplication { /** Called when the activity is first created. */ private PowerManager.WakeLock wl; Bundle next; @Override public void onCreate (Bundle savedInstanceState) { super.onCreate(savedInstanceState); this.initialize(new SuperJumper(), false); PowerManager pm = (PowerManager) getSystemService(Context.POWER_SERVICE); wl = pm.newWakeLock(PowerManager.FULL_WAKE_LOCK, "DoNotDimScreen"); } @Override protected void onResume() { super.onResume(); wl.acquire(); } @Override protected void onPause() { super.onPause(); wl.release(); } </code></pre> <p>}</p> <p>and my manifest file is this:-</p> <pre><code> &lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.inoXmobile.glowjump" android:versionCode="1" android:versionName="1.0" android:installLocation="auto"&gt; &lt;application android:icon="@drawable/icon" android:debuggable="true" android:label="@string/app_name"&gt; &lt;activity android:name=".GlowJupmAndroid" android:label="@string/app_name" android:configChanges="keyboard|keyboardHidden|orientation" android:screenOrientation="landscape"&gt; &lt;intent-filter&gt; &lt;action android:name="android.intent.action.MAIN" /&gt; &lt;category android:name="android.intent.category.LAUNCHER" /&gt; &lt;/intent-filter&gt; &lt;/activity&gt; &lt;/application&gt; &lt;uses-sdk android:minSdkVersion="3"/&gt; &lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/&gt; &lt;uses-permission android:name="android.permission.WAKE_LOCK" /&gt; &lt;/manifest&gt; </code></pre> <p>please anyone suggest me why this exception occure many time I have been try to remove project and try to run ,clean and and new jar download from cod.google,but it is not working.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload