java - Why doesn't Android Studio recognize Base64.encodeBase64? -


i'm trying run following code, cannot use encodebase64().
i've tried import such libraries using alt + enter.

enter image description here

how can make work?

use this:

string result = base64.encodetostring(data, base64.default); 

instead of using, advice use: .getbytes("utf-8"); instead of data.getbytes(); utf-8 better choice. hope you.


Comments

Popular posts from this blog

shopping cart - Page redirect not working PHP -

php - How to modify a menu to show sub-menus -

python - Installing PyDev in eclipse is failed -