unity-doc-errors

andoird

** unityLibrary:compileDebugJavaWithJavac’ property ‘options.generatedSourceOutputDirectory’ **

1
2
3
4
5
# 此版本中使用了已棄用的 Gradle 功能,使其與 Gradle 8.0 不兼容。使用“‑‑warning‑mode all”顯示各個棄用警告。請參閱 https://docs.unity3d.com/Manual/android‑gradle‑overview.html), I know that I should use Gradle version 6.1.1.
# To change the Gradle version, open gradle‑wrapper.properties file, update distributionUrl=https\://services.gradle.org/distributions/gradle‑6.1.1‑bin.zip with the Gradle version found above. Then, sync and rebuild the project. Build success!

1. 打开android项目的 gradle‑wrapper.properties 文件
2. 修改gradle-xxx-bin.zip 为 gradle‑6.1.1‑bin.zip

Gradle failed to fetch dependencies

1
2
# 打开playersetting->player->android 
# 勾选 Custom Main Gradle Template and Custom Gradle Properties Template