"source value 1.5 is obsolete and will be removed in a future release" Code Answer

4

another possibility (which will fix it for all android builds made with ant), is to tweak the default parameters for the -compile task in <android-sdk>toolsantbuild.xml.

at the <!-- compilation options --> section, you can either set the compiler flags:

<property name="java.compilerargs" value="-xlint:-options" />

or, alternatively, change the source and target parameters:

<property name="java.target" value="1.6" />
<property name="java.source" value="1.6" />

as of now, 1.6 is enough to avoid the warning.

By preezzzy on July 14 2022

Answers related to “source value 1.5 is obsolete and will be removed in a future release”

Only authorized users can answer the Search term. Please sign in first, or register a free account.