i want to encode string to binary64 however i found an error and i dont know how to solve this. this is my code that im using.
String text = name1.getText().toString();
// Sending side
byte[] data = null;
try {
data = text.getBytes("UTF-8");
} catch (UnsupportedEncodingException e1) {
e1.printStackTrace();
}
String base64 = Base64.encodeToString(data, Base64.DEFAULT);
however, Base64.encodeToString showing error saying require API level 8(current min sdk is 1). but im using android 2.2 and i believe its min sdk is 8. am i right?
than i tried to review the issue and it appear to be like this:

Try to change your AndroidManifest.xml: