Bug 460024 - Plugin versions should require JDK 1.7 as min execution environment
Summary: Plugin versions should require JDK 1.7 as min execution environment
Status: NEW
Alias: None
Product: andmore
Classification: Tools
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Mac OS X
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: David Carver CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-16 09:54 EST by David Carver CLA
Modified: 2015-03-15 22:22 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Carver CLA 2015-02-16 09:54:49 EST
http://stackoverflow.com/questions/26474298/android-parsing-data-for-android-21-failed

The latest versions of the Android SDK are being compiled with JDK 7 as the minimum ennvironment.  If Eclipse is running with JDK 6, then when it tries to use a Android 21 jar, it will complain about byte codes not being correct.   

A couple of options:

1. Require JDK 7 for the Andmore plugins as the min execution environment.

2. Warn users that are using JDK 6 as their runtime that Android 21 or higher won't work.

In general, we should probably just use JDK 7 as the minimum.
Comment 1 Tom Golden CLA 2015-03-02 14:24:32 EST
Will targeting versions of Android <=20 work correctly (build tools will still generate correct dex files) when the class files are in the format for Java 7? Or will we need to switch between environments?

Obviously this will become less important over time as KitKat and above supercede older installs in the wild.
Comment 2 David Carver CLA 2015-03-02 15:47:18 EST
(In reply to Tom Golden from comment #1)
> Will targeting versions of Android <=20 work correctly (build tools will
> still generate correct dex files) when the class files are in the format for
> Java 7? Or will we need to switch between environments?
> 
> Obviously this will become less important over time as KitKat and above
> supercede older installs in the wild.

This won't affect your individual projects, unless you have target API set to 21.  That version requires a JDK 1.7 in order to not give byte code compilation issues.

The latest Build Tools and Dexers will correctly make the DEXed code compatible with lower API levels even if JDK 7 is being used.
Comment 3 David Carver CLA 2015-03-15 22:22:45 EDT
Nice to have but not necessary for 0.5-M1