Giter VIP home page Giter VIP logo

Comments (9)

Zhuinden avatar Zhuinden commented on June 16, 2024

Interesting, because it's here

from acorn.

nhaarman avatar nhaarman commented on June 16, 2024

Hm, Acorn doesn't use annotation processing itself so I'm thinking it's a misconfiguration on your end. Could you share some of your config? Did you use the com.nhaarman.acorn.ext:acorn-android-appcompat artifact for example?

It's also funny that a Google search for the error results in at least two pages where @Zhuinden contributed 😅

from acorn.

sdoward avatar sdoward commented on June 16, 2024

@Zhuinden gradle doesn't look at github to find source code.

@nhaarman yes I recognise this might be some config issue on my side.

Yes I am using that artefact. My config looks like this...

import org.jetbrains.kotlin.gradle.internal.AndroidExtensionsExtension
import org.sharethemeal.dependencies.AndroidSdk
import org.sharethemeal.dependencies.Libraries
import org.sharethemeal.dependencies.ReleaseConfig

plugins {
    id("com.android.library")
    id("kotlin-android")
    id("kotlin-android-extensions")
}


android {
    compileSdkVersion(AndroidSdk.compileSdk)

    defaultConfig {
        minSdkVersion(AndroidSdk.minSdk)
        targetSdkVersion(AndroidSdk.targetSdk)
        versionCode = ReleaseConfig.instantVersionCode
        versionName = ReleaseConfig.appVersionName
        renderscriptTargetApi = AndroidSdk.targetSdk
        vectorDrawables.useSupportLibrary = true
        renderscriptSupportModeEnabled = true
        testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
    }

    compileOptions {
        sourceCompatibility = JavaVersion.VERSION_1_8
        targetCompatibility = JavaVersion.VERSION_1_8
    }

    buildTypes {
        getByName("release") {
            isMinifyEnabled = false
            proguardFiles(getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro")
        }
    }

    lintOptions {
        setLintConfig(file("../qualityconfigs/lint.xml"))
    }

}

androidExtensions {
    configure(delegateClosureOf<AndroidExtensionsExtension> {
        isExperimental = true
    })
}


dependencies {
    implementation(project(":core"))


    implementation ("com.nhaarman.acorn.ext:acorn-android-appcompat:0.11.6")
    implementation(Libraries.appCompat)
    kapt(Libraries.daggerCompiler)
    implementation(Libraries.dagger)
    kapt(Libraries.daggerAndroidCompiler)
    implementation(Libraries.cardView)
    implementation(Libraries.daggerAndroid)
    implementation(Libraries.kotlinStdlib)
    implementation(Libraries.androidBound)
    implementation(Libraries.rxJava)
    implementation(Libraries.joda)

    testImplementation(Libraries.junit)
    testImplementation(Libraries.mockitoKotlin)
}

One issue I had before this is that we don't use isExperimental = true from kotlin-android-extensions so I had to add that config (maybe you can include that in the readme)

from acorn.

Zhuinden avatar Zhuinden commented on June 16, 2024

Does core have a different version of Acorn?

I see this is library module, maybe you need api("com.nhaarman.acorn.ext:acorn-android-appcompat:0.11.6")?

from acorn.

sdoward avatar sdoward commented on June 16, 2024

core doesn't use acorn only this module

from acorn.

Zhuinden avatar Zhuinden commented on June 16, 2024

Did you try changing implementation to api?

from acorn.

nhaarman avatar nhaarman commented on June 16, 2024

@sdoward did you make any progress on this? If not, would it be possible to reproduce the issue in an MVCE?

from acorn.

sdoward avatar sdoward commented on June 16, 2024

@Zhuinden surprisingly your suggestion works.

@nhaarman I will try if I find some spare time.

from acorn.

nhaarman avatar nhaarman commented on June 16, 2024

Closing this issue for now. If you still find any difficulties, don't hesitate to open a new one.

from acorn.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.