Coder Social home page Coder Social logo

Font Runtime Error about composecookbook HOT 7 CLOSED

gurupreet avatar gurupreet commented on July 17, 2024 1
Font Runtime Error

from composecookbook.

Comments (7)

Gurupreet avatar Gurupreet commented on July 17, 2024 1

Yes I think it's related to versioning let me try to reproduce and check on it :)

from composecookbook.

wiryadev avatar wiryadev commented on July 17, 2024

Tried to update fontAwesomeCompose version to 1.0.1-alpha01. The old error is gone, but replaced with this error:

java.lang.NoSuchMethodError: No interface method startRestartGroup(ILjava/lang/String;)Landroidx/compose/runtime/Composer; in class Landroidx/compose/runtime/Composer; or its super classes (declaration of 'androidx.compose.runtime.Composer' appears in /data/app/com.guru.composecookbook-WgSDCeCP5Tg7qW3QQga3Ug==/base.apk)
        at com.guru.fontawesomecomposelib.FaIconKt.FaIcon-EfRbmQ0(FaIcon.kt:35)
        at com.guru.composecookbook.ComposableSingletons$MainActivityKt$lambda-1$1.invoke(MainActivity.kt:123)
        at com.guru.composecookbook.ComposableSingletons$MainActivityKt$lambda-1$1.invoke(MainActivity.kt:122)

I think maybe it has something to do with the library's compose version. Because in the composer its parameter is Integer, not String:

image

from composecookbook.

wiryadev avatar wiryadev commented on July 17, 2024

Yes I think it's related to versioning let me try to reproduce and check on it :)

Thanks for that. Btw, i tried to update FontAwesomeCompose dependencies versioning. I hope you could check on that :D

from composecookbook.

csf033 avatar csf033 commented on July 17, 2024

Describe the bug
The app force closed the first time it try to launch.

To Reproduce
use the latest master branch (by the time this issue created) and run it

Screenshots
image

Additional context
Here is the full log.
It points out to getFontFamily function and i think it is because the Font has multiple implementation. See this screenshot:

image

image

Has the problem been solved?

from composecookbook.

Gurupreet avatar Gurupreet commented on July 17, 2024

Let me check on this today and try to fix.

from composecookbook.

Gurupreet avatar Gurupreet commented on July 17, 2024

Updated the fontAwesomeCompose to latest version. This issue should be resolved please try with new changes.

from composecookbook.

wiryadev avatar wiryadev commented on July 17, 2024

Updated the fontAwesomeCompose to latest version. This issue should be resolved please try with new changes.

Thanks, the issue is gone now

from composecookbook.

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.