Skip to content
This repository was archived by the owner on Apr 25, 2024. It is now read-only.
This repository was archived by the owner on Apr 25, 2024. It is now read-only.

Serious JDK versioning issues.  #161

Open
@collinalexbell

Description

@collinalexbell

I am running 16.06 Ubuntu on a MacBook Air with both openjdk-7 and openjdk-8 installed.
I have installed Android Studio 2.3.1

Android Studio post SDK 24 ships with the 1.8 JRE. This means that it compiles the SDK using JDK 1.8

I am getting problems running lein droid.

If I use openjdk-7 as my java I produce this error while compiling code.


Compiling neko.log
Exception in thread "main" java.lang.UnsupportedClassVersionError: android/util/Log : Unsupported major.minor version 52.0, compiling:(/tmp/form-init6532476813401129275.clj:1:73)

android/util/Log was compiled with jdk8

If I use openjdk-8 as my java it produce this error after compiling all the clojure.

Creating DEX....

PARSE ERROR:
unsupported class file version 52.0
...while parsing android/annotation/SuppressLint.class
1 error; aborting

By "use x as my java" I mean I run sudo update-alternatives --config java which allows me to change the output of java -version

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions