Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

strings in switch are not supported in -source 1.6 #264

Closed
ghost opened this issue Dec 23, 2017 · 1 comment
Closed

strings in switch are not supported in -source 1.6 #264

ghost opened this issue Dec 23, 2017 · 1 comment

Comments

@ghost
Copy link

ghost commented Dec 23, 2017

Support Information:
cordova: 8.0.0
android 6.3.0

My build fails after adding this plugin. Anyone please help me out. Thanks in advance

Error:
/myProject/platforms/android/src/cordova/plugins/Diagnostic.java:1262: error: strings in switch are not supported in -source 1.6
switch(abi){
^
(use -source 7 or higher to enable strings in switch)
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /myProject/platforms/android/src/cordova/plugins/Diagnostic.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':compileArmv7DebugJavaWithJavac'.

Compilation failed; see the compiler error output for details.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
@dpa99c
Copy link
Owner

dpa99c commented Dec 23, 2017

Fixed in v3.8.1 by PR #263.

@dpa99c dpa99c closed this as completed Dec 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant