Code Monkey home page Code Monkey logo

Comments (11)

deividas717 avatar deividas717 commented on May 28, 2024 1

Hi!
Thanks for a reply.
Sadly targeting java 11 does not helped. I got same error.

from compose-destinations.

hristogochev avatar hristogochev commented on May 28, 2024 1

Hello! I stumbled upon the same issue and after switching to java 11 I had to invalidate the caches of Android Studio, that fixed it.

from compose-destinations.

deividas717 avatar deividas717 commented on May 28, 2024 1

Hello! I stumbled upon the same issue and after switching to java 11 I had to invalidate the caches of Android Studio, that fixed it.

Thank you! Now it works perfectly! :)

from compose-destinations.

raamcosta avatar raamcosta commented on May 28, 2024 1

Are you using desugaring? It seems to be related.
To be completely honest, I am not sure I fully understand all the implications here, but I was able to reproduce the reported issue and then I was able to fix it in the library.

from compose-destinations.

raamcosta avatar raamcosta commented on May 28, 2024

Hi!

Hmmm πŸ€”
I need to take some time to analyse this properly, I have never seen it before.
I'll mark it also for v2.
Until then, try targetting java 11, that probably fixes it.

from compose-destinations.

dave08 avatar dave08 commented on May 28, 2024

It seems like according to: https://developer.android.com/build/jdks#compileSdk java 11 is only supported on Android api 32 and above, we need to support from api level 21... would it be possible to use

    sourceCompatibility = JavaVersion.VERSION_1_8
    targetCompatibility = JavaVersion.VERSION_1_8

to compile this library?

from compose-destinations.

raamcosta avatar raamcosta commented on May 28, 2024

We are using this library at work and our min sdk is 24. We’re also targeting Java 11 with no issue.

I will be checking this later on, but for now I’m not considering this urgent since I believe it works with all min sdk that compose also requires.

from compose-destinations.

raamcosta avatar raamcosta commented on May 28, 2024

But @dave08 if you find any issue with your min sdk please do let me know πŸ™‚

from compose-destinations.

dave08 avatar dave08 commented on May 28, 2024

@raamcosta Compose supports from sdk 21...

from compose-destinations.

raamcosta avatar raamcosta commented on May 28, 2024

Hi guys!

After some tests I did find that my understanding of these jvm targets was off, apologies πŸ™

1.9.56 is cooking where this should be fixed. Thank you for reporting πŸ™‡

from compose-destinations.

UKMIITB avatar UKMIITB commented on May 28, 2024

@raamcosta
Can you share your analysis of JVM 17
We are using following configuration in our app

compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = '17'
}

And our app support is 21 & above. And the app seems to be working fine.

from compose-destinations.

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.