google-ar / arcore-unity-sdk

ARCore SDK for Unity
https://developers.google.com/ar
Other
1.4k stars 400 forks source link

Unable to build ARCore scenes apk on mac osx #760

Closed michelepanegrossi closed 4 years ago

michelepanegrossi commented 4 years ago

SPECIFIC ISSUE ENCOUNTERED

Unity hangs while trying to build the example scenes. It gets stuck on 'Building scene 0: HelloAR'. I tried with the Hello AR scene and the PersistentCloudAnchors sene. Unity hangs and I have to force quit. No errors or messages in the console at all. I was able to build the persistent cloud anchors scene on a Windows 10 machine and with AR Foundation and the ARCore extensions package on the same mac osx machine.

VERSIONS USED

Packages: versionName=1.20.202550203 Hidden system packages: versionName=0 Active APEX packages: Inactive APEX packages: Factory APEX packages:

google/flame/flame:11/RP1A.201005.004/6782484:user/release-keys

STEPS TO REPRODUCE THE ISSUE

  1. Create new unity project in unity 2019.4.12f, switch to Android platform
  2. Install XR Legacy Input Helpers and HLAPI packages verified versions.
  3. Import the arcore sdk 1.20.0 unitypackage
  4. Check the 'ArCore supported' option in Player --> XR Settings
  5. Set minimum API level to 7.0 and target version 29 (Android 10)
  6. Set the scripting backend to IL2CPP and target ARM64
  7. Follow the instructions in this link to upgrade the version of Gradle and change the build settings https://developers.google.com/ar/develop/unity/android-11-build I am using gradle 6.6.1, copied it into my Documents folder and I am targeting it from the Unity preferences
  8. Open the Persistent Cloud Anchors or Hello AR scene and try to build.

WORKAROUNDS (IF ANY)

ADDITIONAL COMMENTS

See image here

michelepanegrossi commented 4 years ago

After retrying several times, it is now working. I have no idea what changed as I did nothing differently which is a bit scary. Maybe the package has been updated.