項目在編譯的時候,報了以下錯誤。
Execution failed for task ':processArmeabi-v7aDebugResources'.
具體是:
Execution failed for task kotlin.text.StringsKt__StringsJVMKt.replace, parameter $receiver
發現是butterknife的問題,在GitHub上找到原因,https://github.com/JakeWharton/butterknife/issues/961
項目用到butterknife版本是8.7.0,將版本降低到8.6.0,並升級gradle工具,詳細解決方法:https://github.com/JakeWharton/butterknife/issues/842
重新編譯後就解決了。