Jump to content

[Announcement] Wave SDK 6.1.0 is published


Recommended Posts

Hi

We tried updating the Wave SDK to 6.1.0 and we ran into some issues with gradle.

- We set the gradle version to 6.9.2

- We modified baseProjectTemplate.gradle to use AGP 4.2.0

But when we make a build these errors show up:

 1) 

CommandInvokationFailure: Gradle build failed. 
C:/Program Files/Unity/Hub/Editor/2019.4.28f1/Editor/Data/PlaybackEngines/AndroidPlayer\OpenJDK\bin\java.exe -classpath "C:\workspace\gradle\gradle-6.9.2\lib\gradle-launcher-6.9.2.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "assembleRelease"

stderr[

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':launcher:compileReleaseJavaWithJavac'.
> Failed to install the following SDK components:
      build-tools;30.0.2 Android SDK Build-Tools 30.0.2
  The SDK directory is not writable (C:\Program Files\Unity\Hub\Editor\2019.4.28f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK)

 

2) 

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':launcher:compileReleaseJavaWithJavac'.
> Failed to install the following SDK components:
      build-tools;30.0.2 Android SDK Build-Tools 30.0.2
  The SDK directory is not writable (C:\Program Files\Unity\Hub\Editor\2019.4.28f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK)

 

3)

 

> Configure project :launcher
WARNING:: DSL element 'useProguard' is obsolete.
It will be removed in version 7.0 of the Android Gradle plugin.
Use 'android.enableR8' in gradle.properties to switch between R8 and Proguard.
WARNING:: DSL element 'useProguard' is obsolete.
It will be removed in version 7.0 of the Android Gradle plugin.
Use 'android.enableR8' in gradle.properties to switch between R8 and Proguard.
WARNING:: Using flatDirs should be avoided because it doesn't support any meta-data formats.
Currently detected usages:
- repository flatDir used in: root project 'gradleOut', project ':launcher', project ':unityLibrary'
WARNING:: Please remove usages of `jcenter()` Maven repository from your build scripts and migrate your build to other Maven repositories.
This repository is deprecated and it will be shut down in the future.
See http://developer.android.com/r/tools/jcenter-end-of-service for more information.
Currently detected usages in: root project 'gradleOut', project ':launcher', project ':unityLibrary'
WARNING:: The specified Android SDK Build Tools version (28.0.3) is ignored, as it is below the minimum supported version (30.0.2) for Android Gradle Plugin 4.2.0.
Android SDK Build Tools 30.0.2 will be used.
To suppress this warning, remove "buildToolsVersion '28.0.3'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.
WARNING:: The specified Android SDK Build Tools version (28.0.3) is ignored, as it is below the minimum supported version (30.0.2) for Android Gradle Plugin 4.2.0.
Android SDK Build Tools 30.0.2 will be used.
To suppress this warning, remove "buildToolsVersion '28.0.3'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.
Checking the license for package Android SDK Build-Tools 30.0.2 in C:\Program Files\Unity\Hub\Editor\2019.4.28f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\licenses
License for package Android SDK Build-Tools 30.0.2 accepted.
Preparing "Install Android SDK Build-Tools 30.0.2 (revision: 30.0.2)".
Warning: Failed to read or create install properties file.
 

 

---

 

It seems to complain about not being able to update:

C:\Program Files\Unity\Hub\Editor\2019.4.28f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK

 

because it's not writable, however If i go to that folder and make sure it's writable, when I make a new build unity will make it read only automatically.

 

Link to comment
Share on other sites

Hi @Overlay,

Please follow below instructions to resolve your issue.

1. Download Android Studio: https://developer.android.com/studio

2. Launch Android Studio and go to Tools>SDK Manager to open Android SDK settings page.

image.png.6898e29e65b9ed61c4a8763387de3d93.png

3. Install the Android SDK Build-Tools 30.0.2 as mentioned in your error message.

image.png.2c4c776f7439d30cd7ff2a8992637d35.png

4. Setup Android SDK Tools path in your Unity project, go to Edit>Preferences...>External Tools

image.png.7478332ee02c521f6bf1b885de049f18.png

  • Like 1
Link to comment
Share on other sites

Thanks! that fixed the error but now we have different ones:

--

Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
Warning: unexpected element (uri:"", local:"base-extension"). Expected elements are <{}codename>,<{}layoutlib>,<{}api-level>

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':launcher:compileReleaseJavaWithJavac'.
> Installed Build Tools revision 35.0.0 is corrupted. Remove and install again using the SDK Manager.

--

Not sure why it's trying to use build tools 35 now

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...