NoClassDefFoundError - Eclipse and Android

后端 未结 27 1008
夕颜
夕颜 2020-11-22 08:02

I\'m having a problem trying to run an Android app which, up until adding a second external library to its build path, was working fine. Since having added the scoreninja ja

27条回答
  •  栀梦
    栀梦 (楼主)
    2020-11-22 08:43

    sometimes you have to take the whole external project as library and not only the jar:

    my problem solved by adding the whole project (in my case google-play-services_lib) as library and not only the jar. the steps to to it (from @style answer):

    1. File->New->Other
    2. Select Android Project
    3. Select "Create Project from existing source"
    4. Click "Browse..." button and navigate to the wanted project
    5. Finish (Now action bar project in your workspace)
    6. Right-click on your project -> Properties
    7. In Android->Library section click Add
    8. select recently added project -> Ok

提交回复
热议问题