I have a framework of my own that I use for in-class tasks (school class, not Java class), and I made it into a .jar
file so that whenever I make changes to the
Turns out Java 8 is not yet supported by the Android SDK (Or something along those lines). Installing Oracle JDK 7 on my desktop, and recompiling my .jar
fixed the issue completely.
The most important part was in the second line of the error produced: "bad class file magic (cafebabe) or version (0034.0000)
". 0x34 is hex for 52, which means that the binaries are targeted for JREs that support Java 8, but Android Studio's system requirements state that JDK 7 is required
Steps to switch to Oracle JDK 7:
.tar
from Oracle's site/opt/
sudo update-alternatives --install /bin/java java /opt/jdk*version*/jre/bin/java 1023
sudo update-alternatives --install /bin/javac javac /opt/jdk*version*/bin/javac 1023
sudo update-alternatives --install /bin/jar jar /opt/jdk*version*/bin/jar 1023
https://askubuntu.com/questions/56104/how-can-i-install-sun-oracles-proprietary-java-jdk-6-7-8-or-jre