I'm having trouble running dokka on a Windows 10 c...
# dokka
e
I'm having trouble running dokka on a Windows 10 computer for an Android [Studio] project. I made changes to my
build.gradle
files as described here: https://medium.com/@julesrosser/auto-generate-kotlin-android-documentation-with-dokka-382248c03283 Here's what happens:
Copy code
$ ./gradlew dokka
Starting a Gradle Daemon, 2 stopped Daemons could not be reused, use --status for details
java.lang.NoClassDefFoundError: Could not initialize class org.codehaus.groovy.vmplugin.v7.Java7
        at org.codehaus.groovy.vmplugin.VMPluginFactory.<clinit>(VMPluginFactory.java:43)
I suspect it has to do with a mismatched Java version:
Copy code
$ java -version
java version "1.8.0_281"
Java(TM) SE Runtime Environment (build 1.8.0_281-b09)
Java HotSpot(TM) 64-Bit Server VM (build 25.281-b09, mixed mode)
Any advice?
It looks like upgrading gradle fixed it. Now I just have to fix all the dokka warnings. 😄