-
-
Notifications
You must be signed in to change notification settings - Fork 428
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Legacy UI whole app gradle 8.1.2 #930
Comments
Can you please provide more details? Which error do you get? |
when I don't use the workaround sometimes I can sync and sometimes not the gradle files. But even if I can sync gradle files I get during building my apk the following error (similar error when I can't sync gradle files): Duplicate class com.mikepenz.aboutlibraries.Libs found in modules jetified-aboutlibraries-core-jvm-10.8.3 (com.mikepenz:aboutlibraries-core-jvm:10.8.3) and jetified-aboutlibraries-core-release-runtime (com.mikepenz:aboutlibraries-core-android:10.8.3) when I use the workaround I can sync gradle and build apk but running the app when it needs to display the package list it displays empty and in logcat I found the following: Unable to read the library information |
This looks to be like 2 different reports. For the first: It seems the jettifier is somehow duplicating classes. Do you really still need the jettifier in your app? For the second. Please make sure the plugin is properly applied, and the generation of the meta data works. (the build folder should contain the json output, unless you have it configured to manually generate the data?) |
Currently I have only one module and use the module wide solution. I can't remove jetifier without some medium work. On the other hand in the second case I see in logcat:
Is that OK? |
I removed the jetifier and still get the duplicate class error. |
Could it be possibly similar problem like: #881 (comment) |
I have the same issue on
produces: Some more stack trace java.lang.NoClassDefFoundError: Failed resolution of: Lcom/mikepenz/aboutlibraries/util/AndroidExtensionsKt; Using this workaround
works, but the list of libraries is empty. My build.gradle
App level
Code to call the library:
build/generated/aboutLibraries is empty
Using Pixel6 API 33 for testing, java project. Using library version 8.9.4 shows at least two items in the list: The AboutLibrary lib and FastAdapter (I guess used by AboutLibraries) |
is the if you manually run the gradle task, would it have dependencies resolved?
What gradle version are you using? |
Using Gradle 8.4.
let to
Changing
to
solved this issue. The library still isn't working after clean rebuild. (No
|
When I try to build a realease build I also get this:
Project is written in java. Only external libraries might use kotlin. I do not have anything related to kotlin defined in my build.gradle files |
Please have a look on this MWE: https://github.com/dhoehl/LibraryTest It demonstrates the crash if this code is not used:
and it also demonstrates the missing json file (and resulting empty library screen. Simply change the build.gradle to reproduce both errors
|
Thank you for this. I'll try to come to this as soon as possible |
I have some new insights: Using this at top level gradle will reproduce the error (no json file in build folder)
But using this in top level gradle resp. in module gradle will produce the json file. In my MWE example this solves all issues and creates a full working library screen.
In my production app this helped as well. The screen is not blank anymore and the app does not throw an exception. Nevertheless the json that is produced is empty. The build log gives me the following output for every library:
I could not figure out the difference between the MWE and my real app. But we are getting closer to a solution, I think. I deleted .idea, .gradle and build dir still get the same result. |
Add this So it was the gradle configuration cache after all |
Thank you for the update @dhoehl |
Closing as config cache problems are tracked here: #839 |
About this issue
implementation("com.mikepenz:aboutlibraries:10.8.3") {
exclude group: 'com.mikepenz', module: 'aboutlibraries-core'
}
But when I want to apply it to the whole app then it on synchronize gives an error without the above workaround or using the above workaround it gives a blank page in user interface of android app
Details
com.android.tools.build:gradle:8.1.2
id 'com.mikepenz.aboutlibraries.plugin' version "10.8.3"
The text was updated successfully, but these errors were encountered: