在Android Studio中开发,

将字符数组转成字符串:


  1. Strin re= EncodingUtils.getString(bytes,"UTF-8");  

可是提示EncodeingUtils无法编译通过.


原因:build.gradle文件中没有添加包依赖

解决方案:在build.gradle文件中添加依赖,然后点击上方的"Sync now",同步一下.  

相关文章:

  • 2022-12-23
  • 2021-06-01
  • 2021-10-27
  • 2021-04-07
  • 2021-04-10
  • 2021-12-28
  • 2021-05-29
  • 2021-12-20
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-24
  • 2021-07-26
  • 2021-09-03
  • 2022-12-23
相关资源
相似解决方案