java - Cannot resolve symbol "Base64" while importing apache commons codec
问题描述
I am working on writing an encryption class to encrypt/decrypt data with a key on Java 1.7 with Android Studio.
Since I can't use Java 1.8 Base64, i'm trying to do it with org.apache.commons.codec.binary.Base64, and even if the app runs and doesn't seems to encounter any error, Android Studio is marking an error on the import statement for apache commons Base64.
I'm declaring apache commons codec as a dependency in build.gradle like that:
dependencies {
....
implementation 'commons-codec:commons-codec:1.14'
}
and Android Studio shows that:
What is happening and how do I get rid of that error?
解决方案
Looks like I resolved that by deleting the import line in the editor and running the application then writing the line back..
推荐阅读
- javascript - 如何删除数组中的对象数组中的对象?
- java - Spring Boot 2.1 以调试模式启动根记录器,直到横幅打印?
- postgresql - Postgres“时区”在转换时不尊重山区标准时间
- wordpress - 如何添加按销售折扣过滤产品的 woocommerce 过滤器?
- deployment - 使用 Windows 兼容包部署 .NET Core 应用程序
- spring - @Before Advice 注解未在 Spring 应用程序中应用
- python - 我可以使用 Sympy 推导出电报方程吗?
- tensorflow - TensorFlow Hub 模块重用
- python - 如何在 django python 的管理页面中添加一个类?
- mpeg2-ts - mpeg-2 ts PCR 33 位 90 kHz 基础和 9 位 27 MHz 扩展位......这是什么意思?