NoClassDefFoundError for code in an Java library on Android

前端 未结 24 2025
梦如初夏
梦如初夏 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 16:09

    Just in case it helps someone, I faced the same issue. My jar file was under the libs directory and the jar was added to the build path. Still it was throwing that exception.

    I just cleaned the project and it worked for me.

    Eclipse -> Project -> Clean -> Select the project and clean

提交回复
热议问题