<java.lang.ExceptionInInitializerError won't go aw...
# stackoverflow
u
java.lang.ExceptionInInitializerError won't go away I'm pulling my hair out trying to figure this exception out. Apparently, it can be thrown when a static variable is being initialised or a static block. What I am getting is java.lang.ExceptionInInitializerError at the line where I initialise a default value of a variable var prefOctaveIndex = 9 as well as in the onCreate of my Main Activity where I read from shared preferences to see if it needs to be overwritten val sharedPreferences = PreferenceManager.getDefaultSharedPreferences(this)...