Android Studio3.0

Android Studio 3.0使用

假如想象 提交于 2019-12-01 21:58:57
本文记录在使用新版本3.0时所遇到的一些问题。 The version of Gradle you are using (2.14.1) does not support the forTasks() method on BuildActionExecuter. Support for this is available in Gradle 3.5 and all later versions. 解决:找到 gradle-wrapper.propertie ,将distributionUrl后面的改为 distributionUrl=https\://services.gradle.org/distributions/gradle-4.0-milestone-1-all.zip Error:org.gradle.api.internal.tasks.DefaultTaskInputs$TaskInputUnionFileCollection cannot be cast to org.gradle.api.internal.file.collections.DefaultConfigurableFileCollection 解决:项目版本Gradle 与Studio Gradle 版本不一致,改成一致即可,另外注意Gradle 的插件版本要与Gradle搭配好。 Android