gpt4 book ai didi

android - 如何解决 SkImageDecoder::Factory 返回 null

转载 作者:塔克拉玛干 更新时间:2023-11-01 21:26:37 24 4
gpt4 key购买 nike

<分区>

代码:

URL url = new URL(bitmapurl);

HttpURLConnection connection = (HttpURLConnection) url.openConnection();
connection.setDoInput(true);
connection.connect();
InputStream input = connection.getInputStream();

bitmap[i] = BitmapFactory.decodeStream(input);
System.out.println("the bitmap is +bitmap[i]);

Logcat 错误:

03-29 15:01:50.044: DEBUG/skia(238): --- SkImageDecoder::Factory returned null
the bitmap is null

如何解决这个问题?

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com