无法解析符号“默认”

问题描述 投票:0回答:1

我正在尝试在Android Studio中解码Text但它在Base64.DEFAULT上显示错误。

byte[] decodedString = Base64.Decoder(message, Base64.DEFAULT);
Bitmap decodedByte = BitmapFactory.decodeByteArray(decodedString, 0, decodedString.length);

任何解决方案?

解码错误: Error in Decoding

错误找不到符号错误默认值: Error Cannot Find Symbol Error Default

android utf-8 decode decoding
1个回答
0
投票

我按照以下两个步骤解决了这个问题

加上这个

import android.util.Base64;

删除这些

import java.util.Base64;
import java.util.Base64.Decoder;
© www.soinside.com 2019 - 2024. All rights reserved.