I'm trying to use java version 1.7 with android studio but unfortunately it is not working properly...
If set the version in File->Other settings -> Default project structure to
Project SDK:
java version 1.7.0_06
Project language level:
7.0 Diamonds, ARM, multi-catch
But when I use a switch-statement with a string I get an error which should be possible in java 1.7, so do I need to set any other settings?
解决方案
No... there is no settings to change. Android SDK don't support full java 7 syntax, so you can't use it.
Note that java.nio.* (new in java 7 API) is supported by latest android version.