Kotlin Android Studio 3.0尝鲜,结果编译的过程中出现了这个错误。如下
Unable to find method 'org.gradle.api.internal.file.DefaultSourceDirectorySet.<init>(Ljava/lang/String;Lorg/gradle/api/internal/file/FileResolver;)V'.
Possible causes for this unexpected error include:
Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)
Re-download dependencies and sync project (requires network)
The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem.
Stop Gradle build processes (requires restart)
Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of Gradle requested by the project.
In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.
buildscript {
ext.support_version = '23.1.1'
ext.kotlin_version = '1.0.0' //改成1.3.21 就可以
e

在尝试使用Android Studio 3.0进行Kotlin项目开发时,遇到了编译错误。详细问题未给出,但表明开发者在更新到新版本后遇到了障碍。
最低0.47元/天 解锁文章
5752

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



