5.6.1f1 Multi-Dex Gradle + OBB

Hey,

Our project is targeted to Android 5+, and we just hit the dex limit. Since there is no way around for us due to the SDKs we are using in the project, I went ahead and made a mainTemplate.gradle which I coppied from the unity installation and just added “multiDexEnabled true”. Suddenly, I was able to make the build (Gradle), and when building the APK WITHOUT splitting the app, it worked perfectly. However… as soon as I turn Split Application on (our game is pretty big), the build works, however the game crashes on the splash screen with the message “App is not responding”. It doesn’t even load the first scene which supposedly is in the APK…

I have searched a lot but honestly we don’t know what to do anymore. How come the single APK be working and the APK + OBB doesn’t?

I’ve seen many other topics on the subject. We tried exporting the Android Studio project, and using the APK built from android studio + the obb that came out of unity… and had the same problem. Any assistance would be very welcome.

Thanks!

When making a debug build, we saw the following error:

07-21 19:54:02.205: E/Unity(28397): Error: Cannot create FMOD::Sound instance for resource sharedassets0.resource, (File not found. )

Indeed, a file with this name does not exist neither in the APK nor the OBB… but, we have not made any changes to anything related to sound in a very long time… so Idk how it could possibly be the reason for a build not to work anymore.

Hey Allan, were you able to fix this?

I think we are having a similar problem.

We need to pass through Android Studio / Gradle to add the new Adaptive icons and support some custom libraries. It works perfectly fine if we build a single file apk directly from Unity, and seems it woks when building the splitted apk+obb from Unity as well (disabling the .aar that requires a newer gradle)

But if we export to Android Studio (gradle) and then upload the OBB file generated by Unity with the APK built by Android studio, it only shows the first scene, and then nothing, it does not crash, but nothing happens…

The problem is that we need to publish it in Google Play splitted because is 100mb >.

BTW its a Cardboard proyect, using GVR 1.30, Unity 2017.2.

Thanks!