How to install gradle -3.0 manually

I am trying to set up a new gradel-3.0, but I am getting an error similar to this

Error:Cause:org.gradle.api.internal.tasks.DefaultTaskInputs$TaskInputUnionFileCollection cannot be cast to org.gradle.api.internal.file.collections.DefaultConfigurableFileCollection 

Possible causes of this unexpected error:

  • The gradle dependency cache may be corrupted (this sometimes happens after a network connection timeout). Restart dependencies and synchronization project (network required).
  • The state of the Gradle build process (daemon) may be corrupted. Stopping all Gradle daemons can solve this problem. Stop Gradle build processes (reboot required)
  • Your project may use a third-party plugin that is incompatible with other project plugins or the Gradle version requested by the project.
In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.

I tried the whole suggested method here , I restarted my laptop again, but then I also get the same error. How to fix this, any hint will be helpful.

+5
source share
1 answer

Update your gradle build tools to:

classpath 'com.android.tools.build:gradle:2.2.0-beta1'

+5
source

All Articles