lig*_*igi 4 android gradle android-studio android-gradle-plugin
将一个项目更新到新的 gradle-plugin ( 14.0.2 ) 后,我在 Android-Studio 中遇到了问题:
Error:Cause: java.io.File cannot be cast to org.gradle.api.artifacts.Configuration
Possible causes for this unexpected error include:<ul><li>Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)
<a href="syncProject">Re-download dependencies and sync project (requires network)</a></li><li>The state of a Gradle build process may be corrupt.
<a href="stopGradleDaemons">Stop Gradle daemons and sync project</a></li></ul>In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.
Run Code Online (Sandbox Code Playgroud)
我尝试了所有建议的东西,但没有成功。此外,这个项目在控制台上构建得很好 - 有点卡在这里。任何提示都可以提供帮助。
这种类型的错误可以通过改变来修复
plusConfigurations += project.configurations.compile
Run Code Online (Sandbox Code Playgroud)
到:
plusConfigurations += [ project.configurations.compile ]
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
3179 次 |
| 最近记录: |