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

kotlin_version = '1.2.20' kaptGenerateStubsReleaseKotlin FAILED at "com.android.library" module #210

Open
shkrebets opened this issue Jan 22, 2018 · 0 comments

Comments

@shkrebets
Copy link

I have an app with 3 modules:mobile(mobile app), wear(watch app)and core(contains some common entities).

I tried to use paperparcel in mobile and core modules. In mobile module(plugin: 'com.android.application') it works fine, but in core module(plugin: 'com.android.library') this exception was caught: org.jetbrains.kotlin.util.ReenteringLazyValueComputationException

:core:kaptGenerateStubsReleaseKotlin FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':core:kaptGenerateStubsReleaseKotlin'.

Internal compiler error. See log for more details

My file in core module:

core->build.gradle:

apply plugin: 'com.android.library'
apply plugin: "kotlin-android"
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-kapt'

android {
compileSdkVersion 24
buildToolsVersion "23.0.2"

defaultConfig {
    minSdkVersion 19
}

}

dependencies {
compile 'com.google.android.gms:play-services-wearable:8.1.0'

compile "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"

compile 'nz.bradcampbell:paperparcel:2.0.0'
compile 'nz.bradcampbell:paperparcel-kotlin:2.0.0'
kapt 'nz.bradcampbell:paperparcel-compiler:2.0.0'

}

Also I enabled org.gradle.parallel and tried to add generateStubs = true but it didn't resolve this issue.

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

1 participant