Giter Site home page Giter Site logo

`RichText` crashes with java.lang.NoSuchMethodError: 'androidx.compose.ui.text.style.TextAlign androidx.compose.ui.text.ParagraphStyle.getTextAlign-buA522U()' about compose-rich-editor HOT 5 CLOSED

mr3y-the-programmer avatar mr3y-the-programmer commented on June 8, 2024
`RichText` crashes with java.lang.NoSuchMethodError: 'androidx.compose.ui.text.style.TextAlign androidx.compose.ui.text.ParagraphStyle.getTextAlign-buA522U()'

from compose-rich-editor.

Comments (5)

mr3y-the-programmer avatar mr3y-the-programmer commented on June 8, 2024

Update:
Compose version 1.6.0-alpha08 is brought transitively by another dependency which causes this conflict.

from compose-rich-editor.

MohamedRejeb avatar MohamedRejeb commented on June 8, 2024

Hi,
Thanks for reporting this issue. Try to use Kotlin 1.9.21 and compose 1.5.* and let me now if it works.

from compose-rich-editor.

mr3y-the-programmer avatar mr3y-the-programmer commented on June 8, 2024

Yes, it works. it looks like there are some breaking changes in compose 1.6.0 which makes the library incompatible with this version

from compose-rich-editor.

MohamedRejeb avatar MohamedRejeb commented on June 8, 2024

Yes, compose multiplatform 1.6.0 still in alpha. When they publish a stable release I will update compose to 1.6.0

from compose-rich-editor.

garretyoder avatar garretyoder commented on June 8, 2024

This is actually a compose bug and was fixed upstream here as compose was intended to have backwards compat (which didn't work) https://issuetracker.google.com/issues/320819734

However, 1.6 stable is probably a bit away and since it just hit beta today, a lot of people are going to want to update for some of the fixes it contains. It might be worth adding a workaround.

from compose-rich-editor.

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.