[Q] Cannot install Eclipse to load Lollipop. - Nexus 5 Q&A, Help & Troubleshooting

Hey Everyone,
I hope you can help me... I'm trying to install the Android Eclipse ADT Bundle, and I keep getting the following pop-up whenever I try to run the Eclipse executable:
---------------------------
Eclipse
---------------------------
Java was started but returned exit code=13
C:\ProgramData\Oracle\Java\javapath\javaw.exe
-Dosgi.requiredJavaVersion=1.6
-Xms40m
-Xmx512m
-XX:MaxPermSize=256m
-jar C:\Dev\adt-bundle-windows-x86_64-20140702\eclipse\\plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
-os win32
-ws win32
-arch x86_64
-showsplash C:\Dev\adt-bundle-windows-x86_64-20140702\eclipse\\plugins\org.eclipse.platform_4.4.0.v20140925-0400\splash.bmp
-launcher C:\Dev\adt-bundle-windows-x86_64-20140702\eclipse\eclipse.exe
-name Eclipse
--launcher.library C:\Dev\adt-bundle-windows-x86_64-20140702\eclipse\\plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20140603-1326\eclipse_1603.dll
-startup C:\Dev\adt-bundle-windows-x86_64-20140702\eclipse\\plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
--launcher.appendVmargs
-exitdata 2f1c_60
-product org.eclipse.epp.package.java.product
-vm C:\ProgramData\Oracle\Java\javapath\javaw.exe
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms40m
-Xmx512m
-XX:MaxPermSize=256m
-jar C:\Dev\adt-bundle-windows-x86_64-20140702\eclipse\\plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
---------------------------
OK
---------------------------
Any ideas as to what I'm doing wrong?
Thank you!
Eamon

Related

Building Eclair from source - java problem

I'm trying to build Eclair from source using instructions here:
http://source.android.com/download
And here:
http://source.android.com/documentation/building-for-dream
It does not build and java crashes out with an exception error:
Code:
Note: Recompile with -Xlint:deprecation for details.
target Java: VpnServices (out/target/common/obj/APPS/VpnServices_intermediates/classes)
An exception has occurred in the compiler (1.5.0). Please file a bug at the Java Developer Connection (http://java.sun.com/webapps/bugreport) after checking the Bug Parade for duplicates. Include your program and the following diagnostic in your report. Thank you.
java.lang.AssertionError: writePool E
at com.sun.tools.javac.jvm.ClassWriter.writePool(ClassWriter.java:513)
at com.sun.tools.javac.jvm.ClassWriter.writeClassFile(ClassWriter.java:1333)
at com.sun.tools.javac.jvm.ClassWriter.writeClass(ClassWriter.java:1211)
at com.sun.tools.javac.main.JavaCompiler.genCode(JavaCompiler.java:325)
at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:474)
at com.sun.tools.javac.main.Main.compile(Main.java:592)
at com.sun.tools.javac.main.Main.compile(Main.java:544)
at com.sun.tools.javac.Main.compile(Main.java:58)
at com.sun.tools.javac.Main.main(Main.java:48)
make: *** [out/target/common/obj/APPS/VpnServices_intermediates/classes-full-debug.jar] Error 41
make: *** Waiting for unfinished jobs....
I am using java 1.5.0 as suggested on the AOSP site.
Code:
java -version
java version "1.5.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-b64)
Java HotSpot(TM) Client VM (build 1.5.0-b64, mixed mode, sharing)
My system is Ubuntu 9.10 32bit.
Are there any tips to get this working? Is this the best version of Java to use?
I was getting a ton of errors with 1.5, I started building with Java 1.6 but I had to stop it. It was definitely getting further.
I have also heard that if you use Java 1.6, you should first run a
Code:
make update-api
and then run
Code:
make

Please Help!

I have been trying to figure out how to sign an apk I have for the droid x. Actually it's a lot of apks but im using this one as an example. I have deodexed the apks and now want to resign them to put back onto my droid. From what I understand, after unzipping and apk and rebuilding it, you need to resign it before it can be used. If this is different for the droid x I am unaware.
Here is what I am running
here is my java version
Code:
java version "1.6.0_22"
Java(TM) SE Runtime Environment (build 1.6.0_22-b04)
Java HotSpot(TM) Client VM (build 17.1-b03, mixed mode, sharing)
here is the command with testsign.jar
Code:
java -classpath testsign.jar AccountAndSyncSettings.apk AccountAndSyncSettings-signed.apk
with the error
Code:
Could not find the main class: AccountAndSyncSettings.apk
and when using
Code:
java -classpath testsign.jar AccountAndSyncSettings.apk AccountAndSyncSettings-signed.apk
I get
Code:
java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:114)
at java.util.jar.JarFile.<init>(JarFile.java:135)
at java.util.jar.JarFile.<init>(JarFile.java:114)
at testsign.main(testsign.java:361)
also tried with signapk.jar
Code:
java -jar -classpath ~/deodex/sources/sign/signapk.jar ~/deodex/sources/sign/testkey.x509.pem key.pk8 AccountAndSyncSettings.apk AccountAndSyncSetting-signed.apk
and get
Code:
Invalid or corrupt jarfile /home/andrew/deodex/sources/sign/testkey.x509.pem
another signapk.jar variation
Code:
java -jar ~/deodex/sources/sign/signapk.jar ~/deodex/sources/sign/testkey.x509.pem ~/deodex/sources/sign/testkey.pk8 AccountAndSyncSettings.apk AccountAndSyncSetting-signed.apk
and get
Code:
java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:114)
at java.util.jar.JarFile.<init>(JarFile.java:135)
at java.util.jar.JarFile.<init>(JarFile.java:114)
at com.android.signapk.SignApk.main(SignApk.java:320)
last one I promise
Code:
java -classpath ~/deodex/sources/sign/signapk.jar ~/deodex/sources/sign/testkey.x509.pem ~/deodex/sources/sign/testkey.pk8 AccountAndSyncSettings.apk AccountAndSyncSetting-signed.apk
and lastly I get
Code:
Caused by: java.lang.ClassNotFoundException: .home.andrew.deodex.sources.sign.testkey.x509.pem
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Could not find the main class: /home/andrew/deodex/sources/sign/testkey.x509.pem
Please Help!!!!

SDK installation issue

Hi, I downloaded the android sdk from the official site, and when I launch eclipse, it gives me this error:
Code:
[email protected] ~/adt-bundle-linux-x86/eclipse $ ./eclipse
Eclipse:
JVM terminated. Exit code=13
/usr/bin/java
-Dosgi.requiredJavaVersion=1.6
-XX:MaxPermSize=256m
-Xms40m
-Xmx768m
-Declipse.buildId=v21.0.1-543035
-jar /home/xacobe/adt-bundle-linux-x86/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
-os linux
-ws gtk
-arch x86
-showsplash
-launcher /home/xacobe/adt-bundle-linux-x86/eclipse/eclipse
-name Eclipse
--launcher.library /home/xacobe/adt-bundle-linux-x86/eclipse//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.1.200.v20120522-1813/eclipse_1502.so
-startup /home/xacobe/adt-bundle-linux-x86/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
--launcher.overrideVmargs
-exitdata 288006
-product com.android.ide.eclipse.adt.package.product
-vm /usr/bin/java
-vmargs
-Dosgi.requiredJavaVersion=1.6
-XX:MaxPermSize=256m
-Xms40m
-Xmx768m
-Declipse.buildId=v21.0.1-543035
-jar /home/xacobe/adt-bundle-linux-x86/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
The java version is the correct
Code:
[email protected] ~/adt-bundle-linux-x86/eclipse $ java -version
java version "1.6.0_24"
OpenJDK Runtime Environment (IcedTea6 1.11.5) (6b24-1.11.5-0ubuntu1~12.10.1)
OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)
I don't know why is this error, can anyone help? Thanks :good:
I'm trying to install eclipse and sdk separately, i just made the sdk work
I needed ia32-libs to make everything work, cause my computer is 64. Then i downloaded the Eclipse IDE for Java Developers, and it works! Finally i installed the plugin and pointed eclipse to the sdk. If someone have this same problem, here is the solution

Android Studio requires Java 1.8 or above. Current JDK version 1.7

That's the error I get when I open Android Studio, except when I type javac -version in terminal, it says javac 1.8.0_101
.
What should I do?

not able to decompile OPSystemUI.apk.. need help

i'm not able to FULLY decompile OPSystemUI.apk
here are the system apk's https://drive.google.com/drive/u/0/folders/1Ahe0zTg6z8YfkE7I-yhZp5CFAFvFeAPD
i'm using APK-Multi-Tool to decompile https://forum.xda-developers.com/showthread.php?t=1310151 and getting "Sorry thats not the dependee apk, try again" when i try to drag framework-res.apk file
logs:
java version "1.8.0_191"
Java(TM) SE Runtime Environment (build 1.8.0_191-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.191-b12, mixed mode)
Exception in thread "main" java.lang.NullPointerException
at brut.androlib.res.data.value.ResStyleValue.serializeToResValuesXml(ResStyleValue.java:58)
at brut.androlib.res.AndrolibResources.generateValuesFile(AndrolibResources.java:516)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:267)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:131)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:108)
at brut.apktool.Main.cmdDecode(Main.java:163)
at brut.apktool.Main.main(Main.java:81)
nevermind, i decompiled with apktool https://ibotpeaches.github.io/Apktool/documentation/

Categories

Resources