https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
d

Dmitry Motyl

07/16/2019, 12:18 PM
Guys, where is the difference between
Copy code
./gradlew android:build
via terminal and
Copy code
build
via Android Studio? I get exception
Copy code
e: java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
if I build via terminal..
g

gildor

07/16/2019, 1:54 PM
Different JVM, most probably you have Java 9+ in terminal, which doesn't include javax.xml anymore It works in AS because by default it uses bundled JVM which is based on Java 8
Also most probably one of your build tools doesn't support java 9+ (old Gradle, old Kotlin plugin, some Gradle plugin, annotation processor etc)
d

Dmitry Motyl

07/16/2019, 2:37 PM
yes, thanks
6 Views