为什么我不能使用android.util.Base64?

sam*_*wei 4 base64 android

The import android.util.Base64 cannot be resolved
Run Code Online (Sandbox Code Playgroud)

是真的在util包里面的Base64类吗?需要一些帮助!谢谢

Vic*_*ong 13

android.util.Base64 自Android API Level 8(即Android 2.2.x或更高版本)以来已包含

http://developer.android.com/reference/android/util/Base64.html

对于旧版本,您必须手动下载库或源代码并将其放在项目下.