Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to fix NoClassdefFoundError
    primarykey
    data
    text
    <p>I'm a newbie with both android and eclipse, so if you can help me, please don't assume that I know very much.</p> <p>I have downloaded kankan.wheel and I'm trying to run the demos. I built the demo project in eclipse, using Android project from existing code. The project compiles without error, but crashes with a NoClassdefFoundError exception when I try to run it. The main menu comes up, but when I press a button to run a demo, the app crashes. I posted a screenshot of the the error message in context at <a href="https://dl.dropboxusercontent.com/u/24746182/except.png" rel="nofollow">https://dl.dropboxusercontent.com/u/24746182/except.png</a></p> <p>I have added the wheel.jar file to the assets folder, and placed it on the build path. I've also checked wheel.jar in Order and Export. (This makes no sense to me, but I see this suggested in answer to similar questions.)</p> <p>What have I done wrong, or failed to do?</p> <p>Is there some reason why eclipse wouldn't just build a runnable project?</p> <p>This is an update after trying the suggestion people have made. I still can't get it to work, so I'm afraid that I'm overlooking something so obvious that no one's thinking to tell me. Here is what I did.</p> <ol> <li>I downloaded and unrarer a rar file with the wheel library and a wheel-demo project.</li> <li>I created the wheel-demo project in eclipse, using new android project from existing cde.</li> <li>I added a libs folder to my project, and copied wheel.jar into it.</li> <li>I right-clicked on the wheel-demo project in Project Explorer, and chose java build path. </li> <li>I clicked on "Add external jar" and navigated to wheel.jar.</li> <li>I went to "Order and Export" and checked wheel.jar.</li> </ol> <p>I had several errors. In the .java file for each activity (except the main activity), I got an error on the line import kankan.wheel.R;</p> <p>I commented this line out.</p> <p>Also, since wheel.jar apparently doesn't specify a minimum API level, I got a error, but I just put a minimum sdk level of 8 in the manifest. I was then able to build the project without error. Still, the main screen comes up, but the app crashes as before when I press a button for any activity.</p> <p>Can you see anything I've left out or done wrong? </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload