Closed clebermatheus closed 3 years ago
This fixed:
implementation 'com.mikepenz:iconics-typeface-api:5.2.8@aar'
This fixed:
implementation 'com.mikepenz:iconics-typeface-api:5.2.8@aar'
This should be added in readme.
@hiteshchavda this problem should not occur if you use the latest release with the latest font libraries. What dependency combination does cause problems on your end?
i'm using following combination
implementation 'com.mikepenz:iconics-core:5.4.0@aar' implementation 'com.mikepenz:iconics-views:5.4.0@aar' implementation 'com.mikepenz:community-material-typeface:7.0.96.0-kotlin@aar'
👆 this gives the "java.lang.NoClassDefFoundError: Failed resolution of: Lcom/mikepenz/iconics/typeface/IconicsInitializer;" error
including following works 👇 // implementation 'com.mikepenz:iconics-typeface-api:5.3.4@aar'
Other libs i'm using
implementation 'androidx.legacy:legacy-support-v4:1.0.0' implementation 'androidx.appcompat:appcompat:1.6.1' implementation 'com.google.android.material:material:1.11.0' implementation 'androidx.cardview:cardview:1.0.0' implementation 'com.google.firebase:firebase-analytics-ktx:21.5.0' implementation 'androidx.preference:preference-ktx:1.2.1' implementation 'androidx.constraintlayout:constraintlayout:2.1.4' implementation 'androidx.multidex:multidex:2.0.1' implementation 'androidx.work:work-runtime:2.9.0' implementation 'androidx.work:work-runtime-ktx:2.9.0' implementation 'androidx.lifecycle:lifecycle-runtime-ktx:$lifecycle_version' implementation 'androidx.lifecycle:lifecycle-common-java8:$lifecycle_version' implementation 'androidx.lifecycle:lifecycle-process:$lifecycle_version'
@hiteshchavda the problem is related to the -core
and -views
modules being declared as @aar
. Doing so will result in them not resolving their transitive dependencies -> which typeface-api
is one of them.
Only the font libraries should be defined with @aar
. Please see the README for reference
https://github.com/mikepenz/Android-Iconics?tab=readme-ov-file#1-provide-the-gradle-dependency
@mikepenz Sorry, my bad.
should have read carefully before commenting.
Library Version: 5.2.8 Gradle: 6.9 Android Studio: 4.2.1