Android-Iconics icon indicating copy to clipboard operation
Android-Iconics copied to clipboard

java.lang.ClassNotFoundException: Didn't find class "com.mikepenz.iconics.typeface.IconicsInitializer"

Open nmaupu opened this issue 2 years ago • 4 comments

Hi,

About this issue

  • When trying to use Iconics in my project, everything compiles but got the following exception at runtime:\
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.mikepenz.iconics.typeface.IconicsInitializer" on path: DexPathList[[zip file "/data/app/~~Y9mUoGVvvs8b8dXhJS8d-g==/org.maupu.android.tmh-JGOuacTk2XqRdLx2AQKJCQ==/base.apk"],nativeLibraryDirectories=[/data/app/~~Y9mUoGVvvs8b8dXhJS8d-g==/org.maupu.android.tmh-JGOuacTk2XqRdLx2AQKJCQ==/lib/x86_64, /system/lib64, /system_ext/lib64]]
                                                                                                    	at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:259)
                                                                                                    	at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
                                                                                                    	at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
                                                                                                    	at com.mikepenz.iconics.typeface.library.community.material.Initializer.dependencies(Unknown Source:0) 
                                                                                                    	at androidx.startup.AppInitializer.doInitialize(AppInitializer.java:168) 
                                                                                                    	at androidx.startup.AppInitializer.discoverAndInitialize(AppInitializer.java:238) 
                                                                                                    	at androidx.startup.AppInitializer.discoverAndInitialize(AppInitializer.java:206) 
                                                                                                    	at androidx.startup.InitializationProvider.onCreate(InitializationProvider.java:45) 
                                                                                                    	at android.content.ContentProvider.attachInfo(ContentProvider.java:2451) 
                                                                                                    	at android.content.ContentProvider.attachInfo(ContentProvider.java:2421) 
                                                                                                    	at android.app.ActivityThread.installProvider(ActivityThread.java:7462) 
                                                                                                    	at android.app.ActivityThread.installContentProviders(ActivityThread.java:6973) 
                                                                                                    	at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6744) 
                                                                                                    	at android.app.ActivityThread.-$$Nest$mhandleBindApplication(Unknown Source:0) 
                                                                                                    	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2133) 
                                                                                                    	at android.os.Handler.dispatchMessage(Handler.java:106) 
                                                                                                    	at android.os.Looper.loopOnce(Looper.java:201) 
                                                                                                    	at android.os.Looper.loop(Looper.java:288) 
                                                                                                    	at android.app.ActivityThread.main(ActivityThread.java:7872) 
                                                                                                    	at java.lang.reflect.Method.invoke(Native Method) 
                                                                                                    	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548) 
                                                                                                    	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936) 

Details

  • [ ] Used library version v5.4.0

  • [ ] Used gradle build tools version 7.3.1

  • [ ] Used tooling / Android Studio version 2021.3.1 Patch 1

Related to #582 but the workaround doesn't fix the issue ( I got a class conflict in that case)

Anyone knows how to fix that ?

nmaupu avatar Dec 04 '22 22:12 nmaupu

This class is within the: iconics-typeface-api module.

Does this issue occur for debug or release mode builds?

mikepenz avatar Dec 05 '22 07:12 mikepenz

Hi, were you able to fix this issue?

arash-ahmadi avatar Feb 01 '23 05:02 arash-ahmadi

@arash-ahmadi there was never an answer from the original author of this ticket, as such I lack information.

This crash does not occur in the sample app, which means I rely on the support of the reportee

mikepenz avatar Feb 01 '23 07:02 mikepenz

Hi, sorry for the delay, my schedule were tight and I forgot to follow up... I finally did differently... It was debug / dev build btw.

nmaupu avatar Feb 01 '23 10:02 nmaupu