Skip to content

hydro0/unity-fabric-multidex-issue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Why this exists

I faced an issue using Fabric SDK on Android when I reached the 65k method references issue. So, the issue is that both problems need the same solution: override base application class in AndroidMainfest.xml. But you can override it only with one of both - FabricApplication or MultiDexApplication. To make this possible, add this small jar file to your Assets/Plugins/Android directory and in your AndroidManifest.xml file add android:name="io.fabric.unity.android.MultiDexFabricApplication" to your <application> tag.

How it works

It simply extends FabricApplication class and add MultiDex.install(this) to the attachBaseContext method. That's how you have both multidex and fabric working together for the majesty of your application!

Targeting Android 5.0 and higher

IMPORTANT! If you have min version of your SDK set to 21 or higher, you don't need to set MultiDexApplication as you main class or call MultiDex.install() anywhere in your app. Therefore you don't need this solution neither, just set a FabricApplication as your main application class.

About

Fix the issue when you need both Fabric and MultiDex been used in your application in Unity.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published