Skip to content

FAQ Troubleshooting Unity SDK 14.1.0

Esther Goh edited this page Oct 10, 2022 · 3 revisions

Issue 1: Gradle build fail with Unity 2019

Generate a custom build.gradle on Unity (more information here: https://docs.unity3d.com/Manual/android-gradle-overview.html). Inside baseProjectTemplate.gradle file, change the version of the classpath to 'com.android.tools.build:gradle:3.5.4' and update unity gradle tool path to gradle 5.4.1.

This could be done by checking the Custom Base Gradle Template under Build Settings -> Player Settings -> Publishing Settings image

You can point to gradle 5.4.1 at Unity -> Preferences -> External Tools Screenshot 2022-10-10 at 5 32 02 PM

Issue 2: Cocoapods installation failure

image

  1. Trigger XCode build from Unity
  2. Wait for Unity console complain and show error
  3. Go into build folder and do pod update
  4. Open Unity-iPhone.xcworkspace