Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
345 views
in Technique[技术] by (71.8m points)

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

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

java.lang.NoClassDefFoundError

The .classpath file was modified. The update in added a line :

<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/>

Before the SDK tools update, all my projects worked well !!

I corrected my problem in this way :

  • In the project properties (eclipse) -> java build path -> order and export make sure that all your jars in the libs folder are checked.
  • And "Android Tools -> Fix Project Properties"
  • And "Project -> Clean"

But I don't understand why! Would anybody have an explanation ?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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+.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...