Kotlin / dokka

API documentation engine for Kotlin
https://kotl.in/dokka
Apache License 2.0
3.41k stars 403 forks source link

Execution failed for task ':app:dokkaHtml'. #2463

Closed raily2595 closed 2 years ago

raily2595 commented 2 years ago

build.gradle file (modul) plugins { id 'com.android.application' id 'org.jetbrains.kotlin.android' id 'kotlin-android' id("org.jetbrains.dokka") version "1.6.20" }

android { compileSdk 31

defaultConfig {
    applicationId "com.example.soilroverapp"
    minSdk 29
    targetSdk 29
    versionCode 1
    versionName "1.0"

    testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}

buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
    }
}
compileOptions {
    sourceCompatibility JavaVersion.VERSION_1_8
    targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
    jvmTarget = '1.8'
}
buildFeatures {
    viewBinding true
    dataBinding true
}

}

dependencies {

implementation 'androidx.core:core-ktx:1.7.0'
implementation 'androidx.appcompat:appcompat:1.4.1'
implementation 'com.google.android.material:material:1.5.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.3'
implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.4.1'
implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.4.1'
implementation 'androidx.navigation:navigation-fragment-ktx:2.4.1'
implementation 'androidx.navigation:navigation-ui-ktx:2.4.1'
implementation("androidx.activity:activity-ktx:1.4.0")
implementation("androidx.fragment:fragment-ktx:1.4.1")
implementation 'com.github.mhiew:android-pdf-viewer:3.2.0-beta.1'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
dokkaHtmlPlugin("org.jetbrains.dokka:kotlin-as-java-plugin:1.6.20")

}

Terminal output

Looking for a different daemon... The client will now receive all logging from the daemon (pid: 964). The daemon log file: C:\Users\Tomaten.gradle\daemon\7.2\daemon-964.out.log Starting 8th build in daemon [uptime: 1 hrs 41 mins 56.828 secs, performance: 100%] Using 16 worker leases. Now considering [C:\Users\Tomaten\AndroidStudioProjects\SoilRoverApp] as hierarchies to watch Watching the file system is configured to be enabled if available File system watching is active Starting Build Settings evaluated using settings file 'C:\Users\Tomaten\AndroidStudioProjects\SoilRoverApp\settings.gradle'. Projects loaded. Root project using build file 'C:\Users\Tomaten\AndroidStudioProjects\SoilRoverApp\build.gradle'. Included projects: [root project 'SoilRoverApp', project ':app']

Configure project : Evaluating root project 'SoilRoverApp' using build file 'C:\Users\Tomaten\AndroidStudioProjects\SoilRoverApp\build.gradle'.

Configure project :app Evaluating project ':app' using build file 'C:\Users\Tomaten\AndroidStudioProjects\SoilRoverApp\app\build.gradle'. All projects evaluated. Selected primary task 'dokkaHtml' from project : Tasks to be executed: [task ':app:dokkaHtml'] Tasks that were excluded: [] :app:dokkaHtml (Thread[Execution worker for ':',5,main]) started.

Task :app:dokkaHtml FAILED :app:dokkaHtml (Thread[Execution worker for ':',5,main]) completed. Took 0.01 secs.

FAILURE: Build failed with an exception.

IgnatBeresnev commented 2 years ago

Hi! This looks like another occurrence of #2472, please have a look, it explains the problem and has some workarounds, hopefully it'll help.

I'll close this issue as a duplicate, but do let us know if proposed workarounds don't help and the problem is something else, we'll investigate.