GithubHelp home page GithubHelp logo

Comments (6)

jakoss avatar jakoss commented on May 27, 2024 1

That helped, thanks

from beagle.

pandulapeter avatar pandulapeter commented on May 27, 2024

I'm having some problems upgrading to Kotlin 1.4 so this might take a while (the new version of Coil seems to require it). I'm looking into this right now, but can't you exclude Coil from Beagle somehow? I was unable to reproduce the crash you mentioned, do you have some logs? Is it a NoClassDefFoundError?

from beagle.

jakoss avatar jakoss commented on May 27, 2024

I'm not in a rush, 0.11.0 works for me just fine. If you have issues with Kotlin 1.4 you can try with Coil 0.12.0 which have the same api but it's targeting kotlin 1.3

java.lang.NoClassDefFoundError: Failed resolution of: Lcoil/ImageLoaderBuilder;
        at com.pandulapeter.beagle.core.BeagleImplementation.initialize(BeagleImplementation.kt:205)
        at com.pandulapeter.beagle.Beagle.initialize(Unknown Source:17)
        at com.pandulapeter.beagle.common.contracts.BeagleContract$DefaultImpls.initialize$default(BeagleContract.kt:51)
        at com.asd.android.DebugApplication.onCreate(DebugApplication.kt:43)
        at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1182)
        at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6460)
        at android.app.ActivityThread.access$1300(ActivityThread.java:219)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1859)
        at android.os.Handler.dispatchMessage(Handler.java:107)
        at android.os.Looper.loop(Looper.java:214)
        at android.app.ActivityThread.main(ActivityThread.java:7356)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)
     Caused by: java.lang.ClassNotFoundException: Didn't find class "coil.ImageLoaderBuilder" on path: DexPathList[[zip file "/data/app/com.asd.android.dev-prGZ8Ve1ZOFAPjJu7MRY7g==/base.apk"],nativeLibraryDirectories=[/data/app/com.asd.android.dev-prGZ8Ve1ZOFAPjJu7MRY7g==/lib/x86, /system/lib, /system/product/lib]]
        at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:196)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
        at com.pandulapeter.beagle.core.BeagleImplementation.initialize(BeagleImplementation.kt:205) 
        at com.pandulapeter.beagle.Beagle.initialize(Unknown Source:17) 
        at com.pandulapeter.beagle.common.contracts.BeagleContract$DefaultImpls.initialize$default(BeagleContract.kt:51) 
        at com.asd.android.DebugApplication.onCreate(DebugApplication.kt:43) 
        at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1182) 
        at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6460) 
        at android.app.ActivityThread.access$1300(ActivityThread.java:219) 
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1859) 
        at android.os.Handler.dispatchMessage(Handler.java:107) 
        at android.os.Looper.loop(Looper.java:214) 
        at android.app.ActivityThread.main(ActivityThread.java:7356) 
        at java.lang.reflect.Method.invoke(Native Method) 
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492) 
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930) 

from beagle.

pandulapeter avatar pandulapeter commented on May 27, 2024

I think we're good now. There is a new release (2.0.0-beta15) which uses Kotlin 1.4 and Coil 1.0.0-rc1. Thanks for raising the issue, let me know if you run into any other problems!

from beagle.

jakoss avatar jakoss commented on May 27, 2024

I run into a problem with implementing VisibilityListener:

image

from beagle.

pandulapeter avatar pandulapeter commented on May 27, 2024

I had the same issue with the example app... Looks like all clients have to do it, I'll add it to the readme then.

Adding this to the end of the module-level build.gradle file should fix it:

tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
    kotlinOptions {
        freeCompilerArgs = ["-Xjvm-default=all"]
    }
}

from beagle.

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.