Replies: 2 comments 4 replies
-
This issue is occurring due to the Gradle version being updated for Android builds in Unity 6000. The error occurs at: The build is failing because the new Gradle plugin requires adding a namespace. buildscript {
repositories {
google()
mavenCentral()
flatDir(dirs: 'libs')
}
dependencies {
classpath "com.android.tools.build:gradle:8.6.0"
}
}
apply plugin: 'com.android.library'
android {
namespace "com.pew.eos_dependencies"
sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDirs = ['src']
res.srcDirs = ['res']
assets.srcDirs = ['assets']
jniLibs.srcDirs = ['libs']
}
}
compileSdkVersion 34
buildToolsVersion '34.0.0'
defaultConfig {
targetSdkVersion 34
}
}
dependencies {
implementation 'androidx.appcompat:appcompat:1.6.1'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation 'androidx.security:security-crypto:1.0.0'
implementation 'androidx.browser:browser:1.4.0'
implementation 'androidx.webkit:webkit:1.7.0'
} However, since this fix doesn't work properly for macOS builds, it cannot be implemented in the next update. |
Beta Was this translation helpful? Give feedback.
-
For Unity 6, it is likely that the .androidlib build works slightly different than Unity 2021. About macOS, do we mean building android on macOS here? |
Beta Was this translation helpful? Give feedback.
-
i am facing same problem with unity 6
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.
For more on this, please refer to https://docs.gradle.org/8.4/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
2nd error
FAILURE: Build failed with an exception.
A problem occurred configuring project ':unityLibrary:eos_dependencies.androidlib'.
BUILD FAILED in 4s
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
Beta Was this translation helpful? Give feedback.
All reactions