Eclipse : Errors occurred during the build - eclipse

Every time I try to run my project as an Android Application this error shows up:
Errors occurred during the build. Errors running builder 'Android
Package Builder' on project 'projectname'.
com/android/dx/command/dexer/Main : Unsupported major.minor version
52.0
Everything was fine before I shut down my laptop when a update came and i didn't wait until it ends. I toked of the power adapter from the wall and next day the laptop won't turn on. I formatted it then reinstalled Eclipse, JDK and SDK's and then this error shows up.

Related

Execution failed for task ':image_picker:compileDebugJavaWithJavac' // works on chrome but not on emulator

I need help with my android studio, when I run my project on an emulator it displays the following errors:
Execution failed for task ':geolocator_android:compileDebugJavaWithJavac'.
It happened when I added geolocation to my dependencies
same happened when I added Image_picker to my dependencies
Execution failed for task ':image_picker:compileDebugJavaWithJavac'
i thought it was cause of version but im using latest version
BUT WHEN I RUN IT USING CHROME, IT WORKS PERFECTLY, CAN ANYONE HELP???

Issue in setting up the Android emulator with React native

I am fairly new to React native and trying to set up Android environment with Visual studio. All the installation has been fairly successful, however, when I try to run the sample app on the android emulator executing the npx react-native run-android command it shows below error -
'C:\Users\Home' is not recognized as an internal or external command,
operable program or batch file.
error Failed to launch emulator. Reason: Could not start emulator within 30 seconds..
Starting a Gradle Daemon, 1 incompatible and 1 stopped Daemons could not be reused, use --status for details
java.lang.NoClassDefFoundError: Could not initialize class org.codehaus.groovy.vmplugin.v7.Java7
at org.codehaus.groovy.vmplugin.VMPluginFactory.<clinit>(VMPluginFactory.java:43)
at org.codehaus.groovy.reflection.GroovyClassValueFactory.<clinit>(GroovyClassValueFactory.java:35)
at org.codehaus.groovy.reflection.ClassInfo.<clinit>(ClassInfo.java:109)
However, when i execute adb devices on visual studio, it shows the list of emulator connected -
List of devices attached
emulator-5554 device
What could be the possible reason? Is this because my users name is Home PC? (Is this because there is a space in between) and it is not able to get the correct path?
This is because your java version is updated to the latest version and gradle is not supported with the installed version. what you can do is update the gradle as well
So go to gradle/wrapper folder inside the android folder
Edit gradle-wrapper.properties file and replace distributionUrl
with following value
https\://services.gradle.org/distributions/gradle-6.3-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.3-all.zip
I too faced the same issue.The problem is with the JDK. From JDK 14 i downgraded to JDK 11(LTS) version. And it worked.
Hope it helps.
Install Java 8 version, which is available Java 8 download
Gradle is not keeping up with the Java Latest versions, so roll back
to previous versions

Eclipse Error occurred during initialization of VM google app engine

Just did a fresh install of Eclips mars.2 and installed the google app engine plug in.
Imported an existing maven project, and trying to run it on the "Google App Engine at Llocal host"
Getting this error when I run it. I'm not even sure where to start on this, I'm just following the tutorial.
Any ideas?
Error occurred during initialization of VM
agent library failed to init: instrument
Error opening zip file or JAR manifest missing : C:\Stuff\Programming

RoboVM not working on JDK 1.8.0 b112

I'm running Eclipse with RoboVM plugin and I wanted to try IOSDemo sample project described on robovm.org (http://www.robovm.org/docs.html). When creating the project in Eclipse and running it I got following error message.
An internal error occurred during: "Launching IOSDemo".
java.lang.IllegalAccessError: tried to access method java.lang.Object.clone()Ljava/lang/Object; from class soot.toolkits.scalar.LocalSplitter
I found out that it's related to JDK version (I'm running JDK 8.0 ea, build 112). When running on JDK 1.7.0_45 and building the project on cmd line it builds and runs OK.
Is it known problem, is there any workaround or fix? Thanks
This is most probably due to a bug [1] in the recent early access builds of Java8. It looks like the bug was resolved a few days ago but as far as I can see the fix didn't make it into the b113 build. Please use the latest Java7 release or an earlier Java8 EA build until a Java8 build is available with this fix included.
[1] https://bugs.openjdk.java.net/browse/JDK-8026394

errors when eclipse loading

In my Eclipse, I see error messages coming in a window, and every project has a red X.
Here are some of the errors:
An internal error occurred during: "Android Library Update".
java.lang.NullPointerException
parseSdkContent failed
java.lang.NullPointerException
An internal error occurred during: "Initializing Java Tooling".
java.lang.NullPointerException
Parsing Data for android-3 failed
java.lang.NullPointerException
Why is this?
WHAT I DID: I deleted the eclipse folder and downloadd again, and now it works properly!
The error messages indicate that your Android SDK installation (outside Eclipse) is somehow corrupted. The SDK installation is in the path which you specified in Window->Preferences->Android->SDK location.
You can delete that folder (with Eclipse being closed), download a new version from http://developer.android.com/sdk/index.html and run the Android SDK manager again afterwards in Eclipse (to check if there are more updates or drivers to be installed). That should fix your issues.
Your emulator devices remain untouched during this process, they are stored in a different directory.