How to make Dokka work with Android Studio?

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?

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

OK, I see.

I got the same problem too.