Android Studio CheckAarMetadataWorkAction problem - java

I am getting this error message while running an app on android studio
Caused by:
org.gradle.workers.internal.DefaultWorkerExecutor$WorkExecutionException:
A failure occurred while executing
com.android.build.gradle.internal.tasks.CheckAarMetadataWorkAction
Expecting some solutions for the Problem

Related

Fatal Exception: java.lang.RuntimeException Could not get application info

Fatal Exception: java.lang.RuntimeException
Could not get application info.
kx0.a (kx0.java:11)
org.chromium.content.browser.ChildProcessLauncherHelperImpl.a (ChildProcessLauncherHelperImpl.java:37)
Bc2.run (Bc2.java:5)
android.os.Handler.handleCallback (Handler.java:873)
android.os.HandlerThread.run (HandlerThread.java:65)
For search, I think this relative with https://chromium.googlesource.com/chromium/src/+/master/content/public/android/java/src/org/chromium/content/browser/ChildProcessLauncherHelperImpl.java, and I use webview in my app.
Is using webview relative with this error?
But, I really don't know what's this error and how to fix this error.
+) This crash caused in Galaxy Wide2, Android 9(Pie)

meteorjs when running on android-device im getting this error

I am trying to develop an app from meteor.js. I am able to compile and run on Apple devices. But when I try to run on android (meteor run android-device) I get the below error message from terminal. I have tried googling the issue but still could not get a fix!.
Status of the individual requirements:
✓ Java JDK
✓ Android SDK
✗ Android target: avdmanager: Command failed with exit code 1 Error output:
Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema
at com.android.repository.api.SchemaModule$SchemaModuleVersion.<init>(SchemaModule.java:156)
at com.android.repository.api.SchemaModule.<init>(SchemaModule.java:75)
at com.android.sdklib.repository.AndroidSdkHandler.<clinit>(AndroidSdkHandler.java:81)
at com.android.sdklib.tool.AvdManagerCli.run(AvdManagerCli.java:213)
at com.android.sdklib.tool.AvdManagerCli.main(AvdManagerCli.java:200)
Caused by: java.lang.ClassNotFoundException: javax.xml.bind.annotation.XmlSchema
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:582)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:190)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:499)
... 5 more
✓ Gradle
This is what I did:
meteor remove-platform android
As mentioned by #SamaahRasheed I then went to Android Studio and updated it:
Android Studio > Check for updates
and then also updated everything else Android Studio then recommended I update as well.
Then I made sure JAVA_HOME was at least java 8
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_111.jdk/Contents/Home
Then I re-added android platform:
meteor add-platform android
It may be that one of these was more important than the others, but this worked.

Exception in thread "main" java.lang.InternalError: internal error: SHA-1 not available

I try to start Android Studio under CentOS and the fowllowing message showed up
Exception in thread "main" java.lang.InternalError: internal error: SHA-1 not available.
at sun.security.provider.SecureRandom.init(SecureRandom.java:108)
at sun.security.provider.SecureRandom.<init>(SecureRandom.java:79)
at java.security.SecureRandom.getDefaultPRNG(SecureRandom.java:198)
at java.security.SecureRandom.<init>(SecureRandom.java:162)
at java.util.UUID$Holder.<clinit>(UUID.java:96)
at java.util.UUID.randomUUID(UUID.java:142)
at com.intellij.internal.statistic.analytics.StudioCrashDetection.start(StudioCrashDetection.java:46)
at com.intellij.idea.Main.main(Main.java:82)
Caused by: java.security.NoSuchAlgorithmException: SHA MessageDigest not available
at sun.security.jca.GetInstance.getInstance(GetInstance.java:159)
at java.security.Security.getImpl(Security.java:695)
at java.security.MessageDigest.getInstance(MessageDigest.java:167)
at sun.security.provider.SecureRandom.init(SecureRandom.java:106)
... 7 more
I verified that I have JDK from Oracle jdk-8u161-linux-x64.rpm installed,JAVA_HOME="/usr/java/jdk1.8.0_161" JRE_HOME="/usr/java/jdk1.8.0_161/jre,jsse.jar is present in jre/lib/.
What else can be wrong?
The problem resolved by Installing another Version of Android Studio.The one I have problem with is android-studio-ide-171.4443003-linux and I replace it with android-studio-ide-173.4670197-linux.zip the problem disappears.It neither has problem with Android Studio 2.Still hope someone can explain this.

Android - java.lang.NoClassDefFoundError: Failed resolution of: Ljavax/xml/bind/JAXBContext;

When deploying an application on Android this issue comes up:
java.lang.NoClassDefFoundError: Failed resolution of: Ljavax/xml/bind/JAXBContext;
How do I resolve it?

Android Studio installation error: java.lang.NoClassDefFoundError

I am trying to install Android Studio on lubuntu, but I get the following error:
Start Failed: Internal Error. Please report to https://code.google.com/p/android/issues
java.lang.NoClassDefFoundError: com.intellij.util.lang.ClassPath
at java.lang.Class.initializeClass(libgcj.so.14)
at com.intellij.util.lang.UrlClassLoader.createClassPath(UrlClassLoader.java:179)
at com.intellij.util.lang.UrlClassLoader.<init>(UrlClassLoader.java:173)
at com.intellij.util.lang.UrlClassLoader$Builder.get(UrlClassLoader.java:128)
at com.intellij.ide.BootstrapClassLoaderUtil.initClassLoader(BootstrapClassLoaderUtil.java:68)
at com.intellij.ide.Bootstrap.main(Bootstrap.java:32)
at com.intellij.idea.Main.main(Main.java:92)
Caused by: java.lang.ClassNotFoundException: sun.misc.Resource not found in gnu.gcj.runtime.SystemClassLoader{urls=[file:./../lib/bootstrap.jar,file:./../lib/extensions.jar,file:./../lib/util.jar,file:./../lib/jdom.jar,file:./../lib/log4j.jar,file:./../lib/trove4j.jar,file:./../lib/jna.jar], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
at java.net.URLClassLoader.findClass(libgcj.so.14)
at gnu.gcj.runtime.SystemClassLoader.findClass(libgcj.so.14)
at java.lang.ClassLoader.loadClass(libgcj.so.14)
at java.lang.ClassLoader.loadClass(libgcj.so.14)
at java.lang.Class.forName(libgcj.so.14)
at java.lang.Class.initializeClass(libgcj.so.14)
...6 more
Also, an UI exception occurred on attempt to show above message:
java.lang.ExceptionInInitializerError
at java.lang.Class.initializeClass(libgcj.so.14)
at com.intellij.util.containers.ConcurrentIntObjectHashMap.getUnsafe(ConcurrentIntObjectHashMap.java:2787)
at com.intellij.util.containers.ConcurrentIntObjectHashMap.<clinit>(ConcurrentIntObjectHashMap.java:2752)
at java.lang.Class.initializeClass(libgcj.so.14)
at com.intellij.util.containers.ContainerUtil.createConcurrentIntObjectMap(ContainerUtil.java:2334)
at com.intellij.util.containers.ConcurrentRefValueIntObjectHashMap.<init>(ConcurrentRefValueIntObjectHashMap.java:31)
at com.intellij.util.containers.ConcurrentWeakValueIntObjectHashMap.<init>(ConcurrentWeakValueIntObjectHashMap.java:31)
at com.intellij.util.containers.ContainerUtil.createConcurrentIntObjectWeakValueMap(ContainerUtil.java:2362)
at com.intellij.openapi.util.Key.<clinit>(Key.java:38)
at java.lang.Class.initializeClass(libgcj.so.14)
at com.intellij.util.ui.UIUtil.<clinit>(UIUtil.java:202)
at java.lang.Class.initializeClass(libgcj.so.14)
at com.intellij.idea.Main.showMessage(Main.java:251)
at com.intellij.idea.Main.showMessage(Main.java:234)
at com.intellij.idea.Main.showMessage(Main.java:224)
at com.intellij.idea.Main.main(Main.java:95)
Caused by: java.lang.RuntimeException: Could not find 'theUnsafe' field in the class sun.misc.Unsafe
at com.intellij.util.concurrency.AtomicFieldUpdater.getUnsafe(AtomicFieldUpdater.java:44)
at com.intellij.util.concurrency.AtomicFieldUpdater.<clinit>(AtomicFieldUpdater.java:38)
at java.lang.Class.initializeClass(libgcj.so.14)
...15 more
I am using lubuntu, based on ubuntu 15.10. I have updated all the software, but it still doesn't work.
Right-click on your project and select -> Compile Module, and then re-start the project and it should work again.

Categories