[javac] warning: [options] source value 1.5 is obsolete and will be removed in a future release
Run Code Online (Sandbox Code Playgroud)
和
error: strings in switch are not supported in -source 1.5
[javac] switch (xmlData[i][1]) {
[javac] ^
[javac] (use -source 7 or higher to enable strings in switch)
Run Code Online (Sandbox Code Playgroud)
在使用Cordova for Android编译APK时,我正在收到警告和错误,我正在运行Java 1.5.我不能在switch语句中使用字符串.(编译过程错误)
我的系统是64位Windows 7.我的Cordova版本是3.5.我正在使用git-scm.(http://git-scm.com/)
cordova run android --release.C:\Program Files\Java\jdk1.8.0_20列为Java目录.java -version给了我java version "1.8.0_20".javac -version给了我javac 1.8.0_20.=android-19 …