android-kotlin-notifications-fcm icon indicating copy to clipboard operation
android-kotlin-notifications-fcm copied to clipboard

Advanced Android in Kotlin: Firebase Messaging 1.2 [Step #][description]

Open Add-Innovation opened this issue 3 years ago • 0 comments

Default code did not compile, citing issues with NoClassDefFoundError Step 5 How to reproduce? rerun the app on the most up to date Android Studio version. Versions Bumblebee 2.1.1 2. What API level are you targeting? 26

Additional information Add any other context about the problem here. The following stackoverflow solution solved it, adding the following dependencies https://stackoverflow.com/questions/43574426/how-to-resolve-java-lang-noclassdeffounderror-javax-xml-bind-jaxbexception // Add missing dependencies for JDK 9+ if (JavaVersion.current().ordinal() >= JavaVersion.VERSION_1_9.ordinal()) { // If you're using @AutoValue or any libs that requires javax.annotation (like Dagger) compileOnly 'com.github.pengrad:jdk9-deps:1.0' compileOnly 'javax.annotation:javax.annotation-api:1.3.2'

    // If you're using Kotlin
    kapt "com.sun.xml.bind:jaxb-core:2.3.0.1"
    kapt "javax.xml.bind:jaxb-api:2.3.1"
    kapt "com.sun.xml.bind:jaxb-impl:2.3.2"

    // If you're using Java
    annotationProcessor "com.sun.xml.bind:jaxb-core:2.3.0.1"
    annotationProcessor "javax.xml.bind:jaxb-api:2.3.1"

    testAnnotationProcessor "com.sun.xml.bind:jaxb-core:2.3.0.1"
    testAnnotationProcessor "javax.xml.bind:jaxb-api:2.3.1"
}

codelab: advanced-android-kotlin

Add-Innovation avatar Apr 07 '22 13:04 Add-Innovation