NoClassDefFoundError for code in an Java library on Android

前端 未结 24 2044
梦如初夏
梦如初夏 2020-11-22 15:19

I am experiencing an error quite often among my users. The app crashes during startup. When the MainActivity is supposed to be loaded the VM apparently cannot find the class

24条回答
  •  说谎
    说谎 (楼主)
    2020-11-22 15:55

    I met NoClassDefFoundError for a class that exists in my project (not a library class). The class exists but i got NoClassDefFoundError. In my case, the problem was multidex support. The problem and solution is here: Android Multidex and support libraries

    You get this error for Android versions lower than 5.0.

提交回复
热议问题