Android studio: NoClassDefFoundError with java.util.Base64
问题 Apologies, I've scanned the many similar-sounding questions and none of them have helped me. I'm running Android Studio 3.0.1, I'm a newbie, I'm following the online tutorial "HelloWorld" program but then adding a call to java.util.Base64.getDecoder(). This fails at runtime when I run it on my actual phone (Samsung Galaxy S8): java.lang.NoClassDefFoundError: Failed resolution of: Ljava/util/Base64; Caused by: java.lang.ClassNotFoundException: Didn't find class "java.util.Base64" on path: