Niedawno zaktualizowałem wersję gradle mojego projektu z wersji 2.14.1 do wersji 3.0. Odtąd Gradle build zawodzi za każdym razem z tym błędem:Błąd kompilacji Gradle po aktualizacji do wersji 3.0
Error:Cause: org.gradle.api.internal.tasks.DefaultTaskInputs$TaskInputUnionFileCollection cannot be cast to org.gradle.api.internal.file.collections.DefaultConfigurableFileCollection Possible causes for this unexpected error include:
In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.
- 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.
Przeszukałem google i znalazłem kilka rozwiązań takich jak this jednym, ale nic nie działa. Czy ktoś wie jak to naprawić?
Z której wersji wtyczki korzystasz? –
im using 2.1.3. –
Najnowsza stabilna wtyczka gradle (** 2.1.3 **) działa z [Gradle 2.14.1 lub nowszym] [1], ale nie obsługuje Gradle 3.x. [1]: https://developer.android.com/studio/releases/gradle-plugin.html –