[
https://issues.apache.org/jira/browse/CB-11640?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15534103#comment-15534103
]
ASF GitHub Bot commented on CB-11640:
-------------------------------------
GitHub user infil00p opened a pull request:
https://github.com/apache/cordova-android/pull/338
CB-11640: Fixing the checks so they check for Java 1.8 and higher FINAL
VERSIONS
Right now, we test for only final and not pre-release versions of the Java
language. Therefore, no Java 9 early candidates.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/infil00p/cordova-android java_regex
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/cordova-android/pull/338.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #338
----
commit f1b85a3f40ad928fd3bc6dd83cfcb1180725f2f5
Author: Joe Bowser <[email protected]>
Date: 2016-09-19T20:35:16Z
CB-11640: Changing requirements check to ask for Java 8
commit 27b3817294a48ebf157278fa9c4852b535eb33b6
Author: Joe Bowser <[email protected]>
Date: 2016-09-21T21:16:33Z
Tweaking the regex
commit 68e81000635e1a2a7850c4e1545f2d2915ba6896
Author: Joe Bowser <[email protected]>
Date: 2016-09-27T21:38:07Z
CB-11640: Fixing check_reqs.js so it actually works
----
> Android build fails with JDK 7 -- needs JDK 8
> ---------------------------------------------
>
> Key: CB-11640
> URL: https://issues.apache.org/jira/browse/CB-11640
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android, Docs
> Affects Versions: 6.3.0
> Environment: OS: Linux 3.16.0-4-amd64 #1 SMP Debian
> 3.16.7-ckt25-2+deb8u3 (2016-07-02) x86_64 GNU/Linux
> Cordova: 6.3.0
> Cordova Android: 5.2.1
> Reporter: Andrew Neff
> Assignee: Joe Bowser
> Priority: Minor
>
> Android platform documentation says JDK 7 or later.
> http://cordova.apache.org/docs/en/latest/guide/platforms/android/index.html
> In fact, the default/sample project build throws a
> java.lang.UnsupportedClassVersionError in :transformClassesWithDexForDebug.
> -->>
> Exception in thread "main" java.lang.UnsupportedClassVersionError:
> com/android/dx/command/Main : Unsupported major.minor version 52.0
> <<--
> When I change to JDK 8, the problem goes away and everything seems OK. (I
> only tested this with OpenJDK, but suspect it will be the same for Oracle
> Java.)
> If you decide to fix this by changing the docs, be aware that the JDK
> download link you currently provide offers only JDK 7 downloads.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]