Android Studio:
Error:Execution failed for task ':app:compileDebugUnitTestJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
使用了LAMBDA后在Android Test里就会出现问题,把LAMBDA表达式切换成普通JAVA表达式就没问题了。
本文介绍了一个在Android Studio中使用Lambda表达式导致单元测试失败的问题。当尝试在AndroidTest目录下使用Java 8的Lambda特性时,会出现错误提示。解决办法是将Lambda表达式替换为传统的匿名内部类形式。
Android Studio:
Error:Execution failed for task ':app:compileDebugUnitTestJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
使用了LAMBDA后在Android Test里就会出现问题,把LAMBDA表达式切换成普通JAVA表达式就没问题了。
3213

被折叠的 条评论
为什么被折叠?