Build issue for Android

Include the following details (edit as applicable):

  • Issue category: Unity Build to Android
  • Device type & OS version: Android
  • Host machine & OS version: Windows 11
  • Issue Environment : Unity Unity Editor
  • Xcode version:
  • ARDK version: 2.5.1
  • Unity version: 2022.1

Description of the issue:

I followed the tutorial here and installed gradle v 8.0
https://lightship.dev/docs/ardk/ardk_fundamentals/building_android.html#building-android-api-31

When I try to build I get the following error.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

You can use ‘–warning-mode all’ to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See Command-Line Interface

UnityEditor.BuildPlayerWindow/DefaultBuildMethods:BuildPlayer (UnityEditor.BuildPlayerOptions)
Niantic.ARDK.AR.WayspotAnchors.Editor._RemoteAuthoringPresenceManager:OnBuild (UnityEditor.BuildPlayerOptions) (at Assets/ARDK/Editor/RemoteContent/_RemoteAuthoringPresenceManager.cs:170)
UnityEditor.GenericMenu:CatchMenu (object,string,int)

Tried with unity 2021.3.22f1 as well. followed the android guide
https://lightship.dev/docs/ardk/ardk_fundamentals/building_android.html#building-android-api-31

Same issue. Currently using gradle 8, will try with gradle 7.5.

Hello Syed,

In Unity, can you go to Edit → Preferences → External Tools and scroll all the way down and send me a screenshot of the Android section?

Can you also verify that your Custom Base Gradle Template is set to plugin version 4.2.0?