How to make Dokka work with Android Studio?


#1

Hi, I am using Kotlin 1.0.4 with Dokka 0.9.9 on Android Studio 2.2

When I try to do gradle sync, an error accrued.

Gradle sync failed: Unable to find method
'com.android.build.gradle.api.BaseVariant.getJavaCompiler()Lorg/gradle/api/tasks/compile/AbstractCompile;'.` 

Now I have no choice but to remove dokka plugin.
How can I fix it?


#2

Unfortunately Dokka 0.9.9 is currently incompatible with the latest version of the Android build tools. We’ll release an update soon.


#3

OK, I see.


#4

I got the same problem too.