“Unable to instantiate activity” error

后端 未结 6 1049
别跟我提以往
别跟我提以往 2021-02-05 03:39

One of my Android apps has about 100,000 users and, about 10 times a week, I get the following exception being reported to me via Google\'s market tool:

java.lan         


        
6条回答
  •  孤独总比滥情好
    2021-02-05 04:19

    I had this issue but not with activity. Fixed with a workaround:

    ClassLoader myClassLoader = TroubleClass.class.getClassLoader();
    Thread.currentThread().setContextClassLoader(myClassLoader);
    

提交回复
热议问题