java.lang.RuntimeException: Unable to instantiate activity ComponentInfo / java.lang.ClassNotFoundException

后端 未结 5 924
别那么骄傲
别那么骄傲 2020-12-06 19:07

I\'m having this error while running on my device. I\'ve been browsing the issue and I\'m pretty sure I\'m not having the same issues as mentioned. Both of my activities are

5条回答
  •  猫巷女王i
    2020-12-06 19:22

    If you add additional libs to your project you need to export them with your project in case that some classes excluded.

    right click your project and go to Properties. Click Java Build Path on left panel and navigate to Order and Export tab. You may need to check the third party libs in order to add them to build path and export them to apk. Also notice that the order of libs are also important, the topper they are the higher properties they have when building apk.

提交回复
热议问题