Android: Unable to instantiate activity / ClassNotFoundException

前端 未结 30 3191
粉色の甜心
粉色の甜心 2020-11-27 13:46

I recently published an app to the market and I\'m now getting an error by some user, the app presumably crashes right when it starts. Unfortunately I can\'t contact him dir

30条回答
  •  甜味超标
    2020-11-27 14:23

    I was coming across this problem when I was including java Projects in my buildpath for my android project targeting JavaSE-1.7.

    For some reason my emulator would not throw a class not found if the java project it was including was originally created targeting JavaSE-1.6. Eclipse would give me a warning "Build path specifies execution environment JavaSE-1.6. There are no JREs installed in the workspace that are strictly compatible with this environment." But the Android emulator would launch and I would not get a classnotfoundexception

    So if you are including projects that target JavaSE-1.7, remake them targeting JavaSE-1.6 and this may solve your problem.

    Good luck!

提交回复
热议问题