Gradle Sync Error - Import Gradle Project in Android Studio from Unity

Error:
org.gradle.api.internal.tasks.DefaultTaskInputs $ TaskInputUnionFileCollection could not be passed to org.gradle.api.internal.file.collections.DefaultConfigurableFileCollection

I am trying to import my Unity Android Gradle Export into Android Studio, so I can manually change my android manifest. This application is very simple, just requesting "anykeyDown", plays a short audio clip in a loop and has 1 text user interface element. While the project is being imported, I run this Gradle Sync Issues error, and I'm pretty much puzzled.

He offers these three solutions:
- Reload dependencies. Does not work.
- Stop Gradle build processes and restart. Does not work.
- Your project may use a third-party plugin that is incompatible with other project plugins or Gradle versions requested by the project.

The last sentence may be the key, but I reviewed several workflows for Unity for Android Studio, and they do not solve this problem.

Unity 5.6 has a bug that makes it incompatible with the latest Android SDK tools, and you need to use an older version of these tools to export the project. Interestingly, because of this, the last Gradle complains?

Any direction will be appreciated - Thank you!

+4
1

Gradle Android Studio. ( > Gradle > build.gradle)

dependencies {
        classpath 'com.android.tools.build:gradle:2.3.2'
    }
+5

Source: https://habr.com/ru/post/1676683/


All Articles