Closed davidfio closed 1 year ago
Tested in unity 2022.3 Do not use .gradle files from other Unity versions, create them in unity2022.3 (create custom template)
baseProjectTemplate.gradle :
plugins {
id 'com.android.application' version '7.1.2' apply false
id 'com.android.library' version '7.1.2' apply false
id 'org.jetbrains.kotlin.android' version '1.3.72' apply false
**BUILD_SCRIPT_DEPS**
}
mainTemplate.gradle :
apply plugin: 'com.android.library'
apply plugin: 'org.jetbrains.kotlin.android' //added
**APPLY_PLUGINS**
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'io.github.coolishbee:universalsdk:3.0.5' //added
implementation 'com.google.code.gson:gson:2.8.5' //added
**DEPS**}
For more information, please refer to the documentation.
Thanks!
When I try to build Android in Unity 2022.2.21 I received this error:
I tried to follow the links but I failed to build again. In Unity 2021.3.25 it works great. I'm using Universal SDK 1.2.3 and I'm on Mac with Apple Silicon.