NoClassDefFoundError for code in an Java library on Android

前端 未结 24 2011
梦如初夏
梦如初夏 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:44

    If none of the above works (like it happened to me), and you're using as a library another project in Eclipse.

    Do so: Right click project -> Properties -> Android -> Library -> Add

    That did it for me! Adding a project as a library (Project Properties)

提交回复
热议问题