java.lang.NoClassDefFoundError: javax/microedition/khronos/opengles/GL
Searched on Google with the first line of a JAVA stack trace?
We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.
Recommended solutions based on your search
Samebug tips
- Expert tip
A few things cause this exception:
1) Check if you have all jars and if they're in the correct path.
2) Your classpath might be broken, you can define it in the command line withjava -cp yourClassPath
or at your IDE if you're using one. you can change your scala version to 2.11.11
Solutions on the web
via GitHub by siavashabdoli
, 1 year agovia oschina.net by Unknown author, 1 year ago
via oschina.net by Unknown author, 1 year ago
via zgxue.com by Unknown author, 2 years ago
via oschina.net by Unknown author, 2 years ago
via Stack Overflow by Unknown author, 2 years ago
java.lang.ClassNotFoundException: javax.microedition.khronos.opengles.GL
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at org.robolectric.internal.bytecode.InstrumentingClassLoader.loadClass(InstrumentingClassLoader.java:124)
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
at java.lang.Class.getDeclaredMethod(Class.java:2128)
at org.robolectric.util.ReflectionHelpers.callStaticMethod(ReflectionHelpers.java:224)
at org.robolectric.internal.bytecode.RobolectricInternals.performStaticInitialization(RobolectricInternals.java:54)
at org.robolectric.internal.bytecode.ShadowWrangler.classInitializing(ShadowWrangler.java:114)
at org.robolectric.internal.bytecode.RobolectricInternals.classInitializing(RobolectricInternals.java:18)
at android.graphics.Canvas.
(Canvas.java) at android.view.View.$$robo$$__constructor__(View.java:3804)
at android.view.View.
(View.java) at android.view.View.
(View.java) at android.view.ViewGroup.
(ViewGroup.java) at android.view.ViewGroup.
(ViewGroup.java) at android.view.ViewGroup.
(ViewGroup.java) at android.view.ViewGroup.
(ViewGroup.java) at android.widget.FrameLayout.
(FrameLayout.java) at com.android.internal.policy.PhoneWindow$DecorView.
(PhoneWindow.java) at com.android.internal.policy.PhoneWindow.$$robo$$generateDecor(PhoneWindow.java:3630)
at com.android.internal.policy.PhoneWindow.generateDecor(PhoneWindow.java)
at com.android.internal.policy.PhoneWindow.$$robo$$installDecor(PhoneWindow.java:3973)
at com.android.internal.policy.PhoneWindow.installDecor(PhoneWindow.java)
at com.android.internal.policy.PhoneWindow.$$robo$$getDecorView(PhoneWindow.java:1969)
at com.android.internal.policy.PhoneWindow.getDecorView(PhoneWindow.java)
at android.support.v7.app.AppCompatDelegateImplV7.$$robo$$createSubDecor(AppCompatDelegateImplV7.java:363)
at android.support.v7.app.AppCompatDelegateImplV7.createSubDecor(AppCompatDelegateImplV7.java)
at android.support.v7.app.AppCompatDelegateImplV7.$$robo$$ensureSubDecor(AppCompatDelegateImplV7.java:312)
at android.support.v7.app.AppCompatDelegateImplV7.ensureSubDecor(AppCompatDelegateImplV7.java)
at android.support.v7.app.AppCompatDelegateImplV7.$$robo$$setContentView(AppCompatDelegateImplV7.java:277)
at android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java)
at android.support.v7.app.AppCompatActivity.$$robo$$setContentView(AppCompatActivity.java:140)
at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java)
at com.sheypoor.mobile.mvp.ui.LoginRegisterActivity.onCreate(LoginRegisterActivity.java:43)
at android.app.Activity.$$robo$$performCreate(Activity.java:6237)
at android.app.Activity.performCreate(Activity.java)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.robolectric.util.ReflectionHelpers.callInstanceMethod(ReflectionHelpers.java:195)
at org.robolectric.util.ActivityController$1.run(ActivityController.java:126)
at org.robolectric.shadows.ShadowLooper.runPaused(ShadowLooper.java:340)
at org.robolectric.shadows.CoreShadowsAdapter$2.runPaused(CoreShadowsAdapter.java:40)
at org.robolectric.util.ActivityController.create(ActivityController.java:123)
at org.robolectric.util.ActivityController.create(ActivityController.java:133)
at org.robolectric.util.ActivityController.setup(ActivityController.java:227)
at org.robolectric.Robolectric.setupActivity(Robolectric.java:96)
at com.sheypoor.mobile.LoginRegisterActivityTest.setUp(LoginRegisterActivityTest.java:32)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24)
at org.robolectric.RobolectricTestRunner$2.evaluate(RobolectricTestRunner.java:248)
at org.robolectric.RobolectricTestRunner.runChild(RobolectricTestRunner.java:174)
at org.robolectric.RobolectricTestRunner.runChild(RobolectricTestRunner.java:63)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
at org.robolectric.RobolectricTestRunner$1.evaluate(RobolectricTestRunner.java:140)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:119)
at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:42)
at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:234)
at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:74)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)