This is Sketchware application
I’m trying to make switch toggle on when application opens.
-
ERROR in /storage/emulated/0/.sketchware/mysc/610/app/src/main/java/com/my/newproject10/MainActivity.java (at line 117)
switch1.setOnChecked(true);
^^^^^^^^^^^^
The method setOnChecked(boolean) is undefined for the type Switch
1 problem (1 error)