Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

`base64()` is not public in `android.util.base64()`

Tags:

android

I'm trying to use the base64 class.

But I get this error

`base64()` is not public in `android.util.base64()`. 
 Cannot be accessed from outside package.

Here is how I use it:

package com.example.myname.myapp;
//...
import import android.util.Base64;
//...
Base64 base64 = new Base64(); //Here I get the error
//...
like image 706
the_prole Avatar asked Dec 17 '15 20:12

the_prole


1 Answers

android.util.Base64 has no public constructors so it can't be instantiated directly. There is no need to create an instance anyway as the public API methods are all static.

like image 107
Dev Avatar answered Oct 26 '22 22:10

Dev