Note that there are some explanatory texts on larger screens.

plurals
  1. POjava.lang.NoClassDefFoundError in eclipse
    primarykey
    data
    text
    <p>I open an Android project, which is in Market and apparently is OK, in Eclipse and when I try run it, the application produces a runtime error.</p> <p>This is the logcat:</p> <pre><code>06-19 09:33:37.337: E/AndroidRuntime(3047): FATAL EXCEPTION: main 06-19 09:33:37.337: E/AndroidRuntime(3047): java.lang.NoClassDefFoundError: com.uvigo.gti.PictoDroidLite.PantallaPrincipal$3 06-19 09:33:37.337: E/AndroidRuntime(3047): at com.uvigo.gti.PictoDroidLite.PantallaPrincipal.onCreate(PantallaPrincipal.java:196) 06-19 09:33:37.337: E/AndroidRuntime(3047): at android.app.Activity.performCreate(Activity.java:5104) 06-19 09:33:37.337: E/AndroidRuntime(3047): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1080) 06-19 09:33:37.337: E/AndroidRuntime(3047): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2144) 06-19 09:33:37.337: E/AndroidRuntime(3047): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230) 06-19 09:33:37.337: E/AndroidRuntime(3047): at android.app.ActivityThread.access$600(ActivityThread.java:141) 06-19 09:33:37.337: E/AndroidRuntime(3047): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234) 06-19 09:33:37.337: E/AndroidRuntime(3047): at android.os.Handler.dispatchMessage(Handler.java:99) 06-19 09:33:37.337: E/AndroidRuntime(3047): at android.os.Looper.loop(Looper.java:137) 06-19 09:33:37.337: E/AndroidRuntime(3047): at android.app.ActivityThread.main(ActivityThread.java:5041) 06-19 09:33:37.337: E/AndroidRuntime(3047): at java.lang.reflect.Method.invokeNative(Native Method) 06-19 09:33:37.337: E/AndroidRuntime(3047): at java.lang.reflect.Method.invoke(Method.java:511) 06-19 09:33:37.337: E/AndroidRuntime(3047): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793) 06-19 09:33:37.337: E/AndroidRuntime(3047): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560) 06-19 09:33:37.337: E/AndroidRuntime(3047): at dalvik.system.NativeStart.main(Native Method) </code></pre> <p>And this the conflictive OnCreate:</p> <pre><code>public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); this.getWindow().addFlags( WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON); this.setVolumeControlStream(AudioManager.STREAM_MUSIC); setContentView(R.layout.pantallaprincipal); pantalla = getWindowManager().getDefaultDisplay(); // Datos para poder guardar pictos en la memoria cache. final int memoriaClass = ((ActivityManager) getBaseContext() .getSystemService(Context.ACTIVITY_SERVICE)).getMemoryClass(); final int tamanhoCache = pantalla.getWidth() * pantalla.getHeight() * memoriaClass / 8; memoriaCache = new LruCache(tamanhoCache)//THE CONFLICTIVE LINE { protected int sizeOf(String key, Bitmap bitmap) { return bitmap.getRowBytes() * bitmap.getHeight(); } }; // //////////////////////////////////////////////////// fondo = (LinearLayout) findViewById(R.id.pantallaPrincipal); textoReproducido = (TextView) findViewById(R.id.textoTitulo); gridPictos = (GridView) findViewById(R.id.gridPictos); try { Intent checkTTSIntent = new Intent(); checkTTSIntent.setAction(TextToSpeech.Engine.ACTION_CHECK_TTS_DATA); startActivityForResult(checkTTSIntent, MY_DATA_CHECK_CODE); } catch (Exception e) { e.printStackTrace(); } } </code></pre> <p>Thanks</p>
    singulars
    1. This table or related slice is empty.
    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.
 

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