Hello everyone!
The initial problem of my post (java.lang.UnsupportedClassVersionError) was fixed by both setting project SDK and language level to 1.6 and adding sourceCompatibility=1.6 to core.gradle and desktop.gradle files. This looks strange to me, because why the hell IntelliJ Idea was thinking that source code is “in 1.8”? Anyway, the problem is solved.
Here goes topic-related questions:
- How to know which Android version and corresponding API supports which Java version? I found an answer that there is no strict correlation between Java version and Android API version.
- Do I need to use exact SDK platform version?
- What about SDK build tools? Does their version somehow impact application’s target platforms?
Thank You very much!