I am creating an android application in android studio and trying to create a case of switching to a string. As far as I know, this is possible if you got a JDK of 7 or higher. I use the following /Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk/Contents/Home and still get an error when trying to include a line.
Does anyone know why he still fails, any help is appreciated.
EDIT: I get this eroor Error:(15, 16) error: strings in switch are not supported in -source 1.6 (use -source 7 or higher to enable strings in switch) so clear that somewhere in my project it uses JDK 1.6, but I can't figure out where.
source share