【发布时间】:2017-03-01 12:49:59
【问题描述】:
当我使用这个 gradle 依赖项时出现以下错误:
compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.4'
有什么方法可以解决这个问题,否则它与 android 不兼容。还有其他使用StringJoiner的方法吗?
error: cannot find symbol class StringJoiner
Error:Execution failed for task ':app:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
我构建项目时产生的错误。
【问题讨论】:
-
签入您的代码,可能缺少一些导入
-
我无法构建它。在我的代码中,我使用 import java.util.StringJoiner;失败了