Error waktu run code

Error:Internal error: (java.lang.ClassNotFoundException) javax.xml.bind.annotation.XmlSchema java.lang.ClassNotFoundException: javax.xml.bind.annotation.XmlSchema at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:466) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:566) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:499) at com.android.repository.api.SchemaModule$SchemaModuleVersion.(SchemaModule.java:156) at com.android.repository.api.SchemaModule.(SchemaModule.java:75) at com.android.sdklib.repository.AndroidSdkHandler.(AndroidSdkHandler.java:81) at org.jetbrains.jps.android.AndroidJpsUtil.getAndroidTarget(AndroidJpsUtil.java:404) at org.jetbrains.jps.android.AndroidJpsUtil.getAndroidPlatform(AndroidJpsUtil.java:480) at org.jetbrains.jps.android.builder.AndroidPreDexBuildTarget.computeRootDescriptors(AndroidPreDexBuildTarget.java:110) at org.jetbrains.jps.builders.impl.BuildRootIndexImpl.addRoots(BuildRootIndexImpl.java:72) at org.jetbrains.jps.builders.impl.BuildRootIndexImpl.(BuildRootIndexImpl.java:62) at org.jetbrains.jps.cmdline.BuildRunner.load(BuildRunner.java:84) at org.jetbrains.jps.cmdline.BuildSession.runBuild(BuildSession.java:280) at org.jetbrains.jps.cmdline.BuildSession.run(BuildSession.java:138) at org.jetbrains.jps.cmdline.BuildMain$MyMessageHandler.lambda$channelRead0$0(BuildMain.java:235) at org.jetbrains.jps.service.impl.SharedThreadPoolImpl.lambda$executeOnPooledThread$0(SharedThreadPoolImpl.java:42) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:514) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1135) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.base/java.lang.Thread.run(Thread.java:844)

avatar Fondra
@Fondra

1 Kontribusi 0 Poin

Diperbarui 6 tahun yang lalu

1 Jawaban:

Internal error: (java.lang.ClassNotFoundException)

Kalo menurut saya, kemungkinan ada class yang hilang. Class hilang ini bisa jadi karena dihapus, dirubah lokasinya, atau bisa jadi salah nulisnya (setahu saya salah nulis class nggak bikin syntax error, jadi pas di build nggak muncul salahnya, eh pas runtime baru eror).

But it's really just my opinion since I barely learn Android, still need to learn much more.

avatar arclipse
@arclipse

14 Kontribusi 7 Poin

Dipost 6 tahun yang lalu

Login untuk ikut Jawaban