Giter Site home page Giter Site logo

Comments (9)

mikepenz avatar mikepenz commented on May 29, 2024 1

It looks for whatever reason gradle decides to pull in the jvm variant of the core module instead of the android variant.

You can overrule this by doing:

    implementation("com.mikepenz:aboutlibraries-core-android:10.7.0")
    implementation("com.mikepenz:aboutlibraries:10.7.0") {
        exclude group: 'com.mikepenz', module: 'aboutlibraries-core'
    }

from aboutlibraries.

sucicf1 avatar sucicf1 commented on May 29, 2024 1

@DDihanov we are talking about legacy UI but you mentioned compose. The workaround from @mikepenz
implementation("com.mikepenz:aboutlibraries-core-android:10.7.0")
implementation("com.mikepenz:aboutlibraries:10.7.0") {
exclude group: 'com.mikepenz', module: 'aboutlibraries-core'
}
works by me.

from aboutlibraries.

mikepenz avatar mikepenz commented on May 29, 2024

The crash occurs simply by upgrading gradle without any other changes?

from aboutlibraries.

fourofspades avatar fourofspades commented on May 29, 2024

Yes, never had a problem until I upgraded to Gradle 8.0. All the versions I tried (including the latest 10.6.3) are perfectly happy on Gradle 7.4

from aboutlibraries.

mikepenz avatar mikepenz commented on May 29, 2024

Tested this with the sample app which uses Gradle 8.1.1. And it does not run in any problems. (With minifyEnabled enabled)

Any special r8 rule you use?

Also make sure your jetpack dependencies are up2date.


Can you please provide a sample app to reproduce this problem?

from aboutlibraries.

fourofspades avatar fourofspades commented on May 29, 2024

Sample java app that has the issue.
(will work in development, but a release build will crash at runtime when the FaB is selected.

See the same behavior with Gradle 8 and 8.1.1

MyApplication.zip

from aboutlibraries.

fourofspades avatar fourofspades commented on May 29, 2024

Can confirm this workaround is working.

from aboutlibraries.

DDihanov avatar DDihanov commented on May 29, 2024

FYI I had this issue but after upgrading to 10.8.3 the crash no longer happens:

implementation("com.mikepenz:aboutlibraries-core:10.8.3")
implementation("com.mikepenz:aboutlibraries-compose:10.8.3")

from aboutlibraries.

mikepenz avatar mikepenz commented on May 29, 2024

Thank you @DDihanov . glad this looks to be resolved with the new release.

from aboutlibraries.

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.