Java 错误:包 org.apache.commons.codec.binary 不存在

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/29447977/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-11 08:00:26  来源:igfitidea点击:

Error: package org.apache.commons.codec.binary does not exist

javaandroid

提问by Zhambulable

I've added commons-codec-1.4.jarin my project file and also added

我在我的项目文件中添加了commons-codec-1.4.jar并添加了

import org.apache.commons.codec.binary.Base64;

But whenever I build it it gives me an error:package org.apache.commons.codec.binary does not exist Why it's not working?

但是每当我构建它时,它都会给我一个错误:package org.apache.commons.codec.binary does not exist 为什么它不起作用?

回答by Piyush Mittal

i were also facing the same issue. it was resolved by adding commons-codec.jar

我也面临同样的问题。它是通过添加解决的commons-codec.jar

you may download it from http://mvnrepository.com/artifact/commons-codec/commons-codec/1.7

你可以从http://mvnrepository.com/artifact/commons-codec/commons-codec/1.7下载