java - Out of the sudden (after an Android SDK Manager packages update) an Apache import stopped resolving -


i using android studio, opened sdk manager , downloaded new updates , apis.

then closed it.

i opened eclipse (another older project there) , out of sudden project wouldnt compile anymore:

the import org.apache.http.util cannot resolved 

the developer had worked on project before using class package - encodingutils in following way:

string postdata = "token=" + token + "&url=" + url;     webview.posturl(api.getapploginurl(),             encodingutils.getbytes(postdata, "base64")); 

why package import stop resolving out of nowhere? replace encodingutils.getbytes method with?

turns out, when hovered on encodingutils (cannot resolved), 1 of suggestions fix project setup taken window offered add android.jar project setup, did , problem disappeared!


Comments

Popular posts from this blog

mysql - FireDac error 314 - but DLLs are in program directory -

git - How to list all releases of public repository with GitHub API V3 -

c++ - Getting C2512 "no default constructor" for `ClassA` error on the first parentheses of constructor for `ClassB`? -