【发布时间】:2016-03-02 14:29:53
【问题描述】:
在 Windows 7 上使用 Android Studio 1.5.1 和 gradle 2.8 或 2.10,尝试运行 gradle clean 时出现以下错误(仅在使用 Timber 时):
gradle clean
Incremental java compilation is an incubating feature.
WARNING [Project: :app] To shrink resources you must also enable ProGuard
:clean
:app:clean FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:clean'.
> Unable to delete file: C:\blabla\app\build\intermediates\exploded-aar\com.jakewharton.timber\timber\4.1.0\jars\lint.jar
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
找到这个:
https://code.google.com/p/android/issues/detail?id=190812
还有那个:
http://bugs.java.com/bugdatabase/view_bug.do?bug_id=5041014
但是对于 Android Studio 和 gradle,我们无法控制编译(因此无法控制 URLClassLoader 调用)。
【问题讨论】:
-
我一直收到同样的错误,Unlocker 手动删除文件:/
标签: android gradle lint android-lint timber-android