NoClassDefFondError in Android… but the Class is in one jar included in the Classpath

后端 未结 6 946
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-31 03:19

I am developing an App in Android. It has to be able of take a photo, and to send that photo to a webpage. This is the code:

HttpClient httpclient = new Defa         


        
6条回答
  •  粉色の甜心
    2020-12-31 03:57

    Being unsuccessful at the automatic updating thing, I downloaded the latest and greatest. But the MultipartEntity class couldn't be found. I re-added it to the project. I made sure it was in a folder called 'libs' - but no luck. Andong's prompted me to check the project preferences. Project Properties -> Java Build Path -> Order and Export: make sure that Android Private Libraries is checked. (I checked them all). Clean your project. The problem is gone.

提交回复
热议问题