In this RecyclerView tutorial you will learn how to build out intermediate techniques like swiping, animation and filtering in Kotlin.
I did every thing step by step, but getting this error…
03-21 18:27:30.656 29642-29642/com.husamxxl.nasaimage E/AndroidRuntime: FATAL EXCEPTION: main Process: com.husamxxl.nasaimage, PID: 29642 java.lang.ExceptionInInitializerError at com.husamxxl.nasaimage.MainActivity.loadPhotos(MainActivity.kt:92) at com.husamxxl.nasaimage.MainActivity.onCreate(MainActivity.kt:42)
“Signals that an unexpected exception has occurred in a static initializer.”
Can you show me some of your code?
In looking into that error, Oracle says that it means there was a problem initializing a static variable. Can you check to see if you have any static variables that may not have been initialized properly?
This topic was automatically closed after 166 days. New replies are no longer allowed.