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
Post a Comment