Closed TalhaCagatay closed 4 years ago
Apperantly this was a bug on unity's side and how i solved it :
Add file in Plugins/Android/gradleTemplate.properties - using unity settings
org.gradle.jvmargs=-XmxJVM_HEAP_SIZEM org.gradle.parallel=true android.useAndroidX=true // this line is new android.enableJetifier=true // // this line is new ADDITIONAL_PROPERTIES
also i changed minSDVersion to 21 which auto enables multiDexing.
Unity editor version: 2019.4.7f1 LTS External Dependency Manager version: 1.2.157 Source you installed EDM (from .unitypackage or Unity Package Manager): .unitypackage Features in External Dependency Manager in use (Android Resolver, iOS Resolver, VersionHandler, etc.): Android Resolver, IOS Resolver Plugins SDK in use (Firebase, Admob, Facebook, etc.): Firebase, Facebook, Mopub Platform you are using the Unity editor on (Mac, Windows, or Linux): Windows Platform you are targeting (iOS, Android, and/or desktop): Android/IOS Scripting Runtime (Mono, and/or IL2CPP): IL2CPP
Can't get build on Android / IOS after upgrading Unity to latest LTS version. While upgrading, unity asked if i want to upgrade database version i clicked yes and when i tried to build for the first time unity said that i need to update my mainTemplate.gradle and i let unity to try automatically updating it.
Attribute application@appComponentFactory value=(androidx.core.app.CoreComponentFactory) from [androidx.core:core:1.1.0] AndroidManifest.xml:24:18-86 is also present at [com.android.support:support-compat:28.0.0] AndroidManifest.xml:22:18-91 value=(android.support.v4.app.CoreComponentFactory).
Here is mainTemplate.gradle