Android: Unable to instantiate activity / ClassNotFoundException

前端 未结 30 3184
粉色の甜心
粉色の甜心 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:19

    I was just having a problem with this myself, so I want to bring up what caused the problem for me. I had just included some new libraries setting up expansion APKs. The libraries are dependant on each other and I was only including one of them in my properties > android > libraries.

    So this could happen if the user is missing a library on their phone that most users have.

    It showed ClassNotFoundException on my main activity because it implements a class which was in the missing library.

提交回复
热议问题