Getting noClassFoundError libcore when running an Android project

I am very new to Android. I am developing my first Simple Simple Print Hello World application. During project execution, I get the following exception.

Exception in thread "AsyncQueryWorker" java.lang.NoClassDefFoundError: libcore/io/Libcore
    at android.os.Process.myTid(Process.java:670)
    at android.os.HandlerThread_Delegate.run(HandlerThread_Delegate.java:69)
    at android.os.HandlerThread.run(HandlerThread.java:53)
Caused by: java.lang.ClassNotFoundException: libcore.io.Libcore
    at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:323)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
    ... 3 more

Please help me.

0
source share
2 answers

If you are in eclipse :

Right click project name > Properties

then the Java build path > Order and Export

enter image description here

and make sure all external libraries and dependencies are checked, including libcore

0
source

libcore ? Intellij IDEA ( Android Studio),

+1

All Articles