Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KotlinException #140

Closed
elsennov opened this issue Mar 3, 2017 · 10 comments
Closed

KotlinException #140

elsennov opened this issue Mar 3, 2017 · 10 comments

Comments

@elsennov
Copy link

elsennov commented Mar 3, 2017

dokka version 0.9.13
kotlin version 1.1.0
gradle version 2.3
android studio 2.3

Error while syncing the project

Caused by: kotlin.KotlinNullPointerException
	at org.jetbrains.dokka.gradle.DokkaAndroidPlugin.collectClasspath(mainAndroid.kt:45)
	at org.jetbrains.dokka.gradle.DokkaAndroidPlugin.access$collectClasspath(mainAndroid.kt:15)
	at org.jetbrains.dokka.gradle.DokkaAndroidPlugin$apply$2.execute(mainAndroid.kt:28)
	at org.jetbrains.dokka.gradle.DokkaAndroidPlugin$apply$2.execute(mainAndroid.kt:15)
	at org.gradle.internal.event.BroadcastDispatch$ActionInvocationHandler.dispatch(BroadcastDispatch.java:93)
	at org.gradle.internal.event.BroadcastDispatch$ActionInvocationHandler.dispatch(BroadcastDispatch.java:82)
	at org.gradle.internal.event.AbstractBroadcastDispatch.dispatch(AbstractBroadcastDispatch.java:44)
	at org.gradle.internal.event.BroadcastDispatch.dispatch(BroadcastDispatch.java:79)
	at org.gradle.internal.event.BroadcastDispatch.dispatch(BroadcastDispatch.java:30)
	at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:93)
	at com.sun.proxy.$Proxy16.afterEvaluate(Unknown Source)
	at org.gradle.configuration.project.LifecycleProjectEvaluator.notifyAfterEvaluate(LifecycleProjectEvaluator.java:82)
@stoyicker
Copy link

I'm having the same, and it also happens for Kotlin 1.0.6

@stoyicker
Copy link

Note that it doesn't happen for the android plugin 2.2.3.

@ggbc
Copy link

ggbc commented Mar 21, 2017

Same here... I can't do a gradle sync...

@ggbc
Copy link

ggbc commented Mar 23, 2017

Figured out here guys

The classpath in dependencies section was wrong.

It was pointing to a path that apparently doenst exist (or maybe just doesnt work with gradle 2.3)

So I had to change from

classpath "org.jetbrains.dokka:dokka-android-gradle-plugin:${dokka_version}"

into

classpath "org.jetbrains.dokka:dokka-gradle-plugin:${dokka_version}"

Everything OK here now. Please see more details in http://stackoverflow.com/questions/42929909/cant-build-project-with-android-studio-2-3-and-gradle

@jesm01
Copy link

jesm01 commented Mar 27, 2017

The solution posted by ggbc works, but we are just changing the dokka android plugin for the normal plugin (I'm guessing there is a good reason for having a different plugin for android). There is still something wrong with the android plugin which causes a KotlinNullPointerException.

Knize pushed a commit to Knize/dokka that referenced this issue Mar 30, 2017
Support getting variantManager after android
build tools 2.3.0 API changes
Fix for issue Kotlin#140
stoyicker added a commit to stoyicker/master-slave-clean-store that referenced this issue Apr 3, 2017
stoyicker added a commit to stoyicker/master-slave-clean-store that referenced this issue Apr 3, 2017
* Support lib 25.3.1

* Store 2.0.3

* Android Gradle plugin 2.3.0

* Temp replace Dokka Android by regular Dokka plugin. See Kotlin/dokka#140

* Fix lint

* Make the pre-push run with --debug and --stacktrace

* Gradle clean-up, re-enable incremental compilation
@VincentMasselis
Copy link

I'm facing to a similar issue, when to you plan to release a version that fix this bug ? Do you have snapshots releases ?

VincentMasselis pushed a commit to VincentMasselis/RxUIKotlin that referenced this issue Apr 19, 2017
@semoro
Copy link
Contributor

semoro commented Apr 20, 2017 via email

@VincentMasselis
Copy link

Thanks, I will try this way :)

@semoro
Copy link
Contributor

semoro commented May 8, 2017

All hitting this problem can try 0.9.14 EAP 3
version: 0.9.14-eap-3

@semoro
Copy link
Contributor

semoro commented May 29, 2017

Fixed in 0.9.14

@semoro semoro closed this as completed May 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants