After upgrading Eclipse's Android sdk, I got a java.lang.ClassNotFoundException error.

Asked 1 years ago, Updated 1 years ago, 109 views

I was developing a simple app with the 4.2.2 version. It worked fine on the device at that time. And stopped developing for almost a month

I recently saw Google I/O and decided to develop it again. And I turned on the Android SDK manager and updated it with the latest version I ran a project that I was developing before, and an error like java.lang.ClassNotFoundException occurred.

I checked everything that I can check, but there is no error and the build is good.

java.lang.ClassNotFoundException: Didn't find class "com.example.compassgps.CompassGPSActivity" on path: /data/app/com.example.compassgps-2.apk

I tried clean project and changed Android target build to API17, but I still get that error...

I've searched Stack Overflow, but I don't see any similar situation to mine. What should I do? :(

android classnotfoundexception

2022-09-22 13:11

1 Answers

Right-click the project to view the java build path in properties. Select the Order export tab and verify that Android Private Libraries is selected. If you refer to the library project, please do the same for the library project. And you can clean build it.

Also, check if sdk build tools are properly installed in sdk manager.


2022-09-22 13:11

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.