title: encodeToString base64 android issue
body: <p>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.</p>
  
  <pre><code>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);
  </code></pre>
  
  <p>however, <code>Base64.encodeToString</code> 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? </p>
  
  <p>than i tried to review the issue and it appear to be like this:</p>
  
  <p><img src="https://i.stack.imgur.com/dp2OC.png" alt="enter image description here"></p>