Hello Stack Overflow community,
I have a problem I hope you can help me with.
When opening a project I made with Unity and then build for Android, I keep getting this error message "Gradle sync failed: Cause: org.gradle.api.internal.tasks.DefaultTaskInputs$TaskInputUnionFileCollection cannot be cast to org.gradle.api.internal.file.collections.DefaultConfigurableFileCollection Consult IDE log for more details (Help | Show Log)".
Build Setting Unity: https://i.stack.imgur.com/WLkTa.png
Error message Android Studio: https://i.stack.imgur.com/JX37g.png
I've already tried a number of thing:
- Both options Android Studio gives me:
- Re-download dependencies and sync project.
- Stop Gradle Build process.
- Deleting the folder "gradle" from my project and retrying.
- Changing the "gradle-wrapper.properties" file:
- Changing "gradle-3.3-all.zip" to "gradle-3.4.1-all.zip".
- Adding this line: "org.gradle.jvmargs=-Xmx512m -XX:MaxPermSize=512m".
I'm still getting the same problem and I'm hoping someone here can help me with it.
Thanks in advance,
Frenk