NoClassDefFoundError for code in an Java library on Android

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

    I fixed this issue by adding library project path in project.propertied manually. some how eclipse did not added this entry automaticvally along with "add project". so the point where app was trying to refer any componenrt inside lib project it was crashing .

    you also can try the same thing . app dependecy in projec.properties like

    android.library.reference.1=....\android-sdks\extras\google\google_play_services\libproject/google-play-services_lib

    and run .

提交回复
热议问题