i have been trying to compile an android Marshmello system with no success. every time i try to compile i get this error
javac: invalid source release: 1.7s
Usage: javac <options> <source files>
make: *** [out/target/common/obj/JAVA_LIBRARIES/ext_intermediates/classes-full-debug.jar] Error 41
#### make failed to build some targets (03:04 (mm:ss)) ####
when i check my javac version i get this:
javac 1.7.0_161
java version "1.7.0_161"
OpenJDK Runtime Environment (IcedTea 2.6.12) (7u161-2.6.12-1)
OpenJDK 64-Bit Server VM (build 24.161-b01, mixed mode)
which seems to be the correct version for my system
i have set JAVA_HOME
and ANDROID_JAVA_HOME
to the following paths in the bash.rc file
echo $ANDROID_JAVA_HOME
/usr/lib/jvm/java-7-openjdk-amd64
echo $JAVA_HOME
/usr/lib/jvm/java-7-openjdk-amd64
yet nothing seems to work and i keep getting the same error. can anyone help me? thank you