Android app crashes after SDK-tools update version (NoClassDefFound, tool version 22)

前端 未结 9 1786
伪装坚强ぢ
伪装坚强ぢ 2020-11-30 03:38

I have just updated my android SDK tools to the newly released version (tools version 22, platform tools version 17)

java.lang.NoClassDefFoundError


        
相关标签:
9条回答
  • 2020-11-30 04:18

    I fixed it by going into Java Build Path > Order and Export tab.

    Click everything in the list "Android Private Libraries".

    Then "Project -> Clean". That fixed my issue.

    Just over 1.5 days on this issue, solved my problem by reading Google+.

    0 讨论(0)
  • 2020-11-30 04:20

    I ran into this on Android Studio. Since most of the answers here are for Eclipse, here's how to add the supportv4 library on Android Studio:

    1. Build -> Edit Libraries and Dependencies
    2. Click the + button
    3. Select the support-v4 library
    4. Click OK.

    That's it.

    0 讨论(0)
  • 2020-11-30 04:26

    I solve this with Android Tools->Add support Library

    0 讨论(0)
  • 2020-11-30 04:29

    Solutions:

    1. Check Exports Order
    2. Enable Multi Dex
    3. Check api level of views in layout. I faced same problem with searchView. I have check api level while adding searchview but added implements SearchView.OnQueryTextListener to class file.
    4. Check support Libraries v4,v7 etc
    0 讨论(0)
  • 2020-11-30 04:31

    Had the same issue as StylezSoft. To clarify even further, below is my Java Build Path from Eclipse after that I solved the issue (by ticking the android-support-v4.jar library)

    enter image description here

    Then I cleaned the Project (Project > Clean... > OK) and everything worked fine.

    0 讨论(0)
  • 2020-11-30 04:32

    I had similar issue. But the problem was jar mismatch of "android-support-v4.jar" between Facebook SDK and my application. When I copied the same jar file from Facebook SDK to my application lib folder, the issue was resolved.

    0 讨论(0)
提交回复
热议问题