Hi Guys, a Few hours ago I was able to run both Android and iOS until now I have been facing this e...
a

Anshulupadhyay03

almost 2 years ago
Hi Guys, a Few hours ago I was able to run both Android and iOS until now I have been facing this error. Anyone has any clue what it means?
Task :shared:compileKotlinIosArm64 FAILED
e: Could not find "org.jetbrains.compose.annotation-internal:annotation" in [/Users/anshulupadhyay/Desktop/Android_projects/kmmMovieBuffGit/KmmMovieBuff, /Users/anshulupadhyay/.konan/klib, /Users/anshulupadhyay/.konan/kotlin-native-prebuilt-macos-aarch64-1.9.21/klib/common, /Users/anshulupadhyay/.konan/kotlin-native-prebuilt-macos-aarch64-1.9.21/klib/platform/ios_arm64]

> Task :shared:metadataCommonMainClasses
> Task :shared:allMetadataJar

> Task :shared:compileKotlinIosSimulatorArm64 FAILED
e: Could not find "org.jetbrains.compose.annotation-internal:annotation" in [/Users/anshulupadhyay/Desktop/Android_projects/kmmMovieBuffGit/KmmMovieBuff, /Users/anshulupadhyay/.konan/klib, /Users/anshulupadhyay/.konan/kotlin-native-prebuilt-macos-aarch64-1.9.21/klib/common, /Users/anshulupadhyay/.konan/kotlin-native-prebuilt-macos-aarch64-1.9.21/klib/platform/ios_simulator_arm64]

> Task :shared:verifyReleaseResources

> Task :shared:compileKotlinIosX64 FAILED
e: Could not find "org.jetbrains.compose.annotation-internal:annotation" in [/Users/anshulupadhyay/Desktop/Android_projects/kmmMovieBuffGit/KmmMovieBuff, /Users/anshulupadhyay/.konan/klib, /Users/anshulupadhyay/.konan/kotlin-native-prebuilt-macos-aarch64-1.9.21/klib/common, /Users/anshulupadhyay/.konan/kotlin-native-prebuilt-macos-aarch64-1.9.21/klib/platform/ios_x64]
I'm trying to have some plugins applied universally across a build: I've essentially created the fol...
s

Steve Ramage

almost 5 years ago
I'm trying to have some plugins applied universally across a build: I've essentially created the following block:
plugins {
    ...
    id("io.gitlab.arturbosch.detekt") version "1.15.0" apply true
    // ktlint linter - read more: <https://github.com/JLLeitschuh/ktlint-gradle>
    id("org.jlleitschuh.gradle.ktlint") version "9.4.1" apply true
}

allprojects {
    repositories {
        mavenCentral()
        jcenter()
    }

    apply(plugin = "io.gitlab.arturbosch.detekt")
    apply(plugin = "org.jlleitschuh.gradle.ktlint")

    dependencies {
        detektPlugins("io.gitlab.arturbosch.detekt:detekt-formatting:1.14.2")
    }

    // Configure detekt plugin.
    // Read more: <https://detekt.github.io/detekt/kotlindsl.html>
    detekt {
        config = files("${rootProject.projectDir}/detekt-config.yml")
        buildUponDefaultConfig = true

        reports {
            html.enabled = false
            xml.enabled = false
            txt.enabled = false
        }
    }

    tasks {
        withType<Detekt> {
            jvmTarget = "11"
        }
    }
}
I'm getting the following errors:
e: ./build.gradle.kts:74:9: Unresolved reference: detektPlugins
e: ./build.gradle.kts:80:5: Unresolved reference: detekt
e: ./build.gradle.kts:81:9: Unresolved reference: config
e: ./build.gradle.kts:82:9: Unresolved reference: buildUponDefaultConfig
e: ./build.gradle.kts:84:9: Unresolved reference: reports
e: ./build.gradle.kts:85:13: Unresolved reference: html
e: ./build.gradle.kts:85:18: Variable expected
e: ./build.gradle.kts:86:13: Unresolved reference: xml
e: ./build.gradle.kts:86:17: Variable expected
e: ./build.gradle.kts:87:13: Unresolved reference: txt
e: ./build.gradle.kts:87:17: Variable expected