sorry for posting a new question about this, but since I have no rep, I cannot comment in the old question... and I must say, there is something in the code, I don't understand.
I'm currently developing a quiz app in Unity, and I've got quite a few SDKs and stuff, so Unity wont let me build for Android with single dex...
I'm no code gineus myself, but with the help of this post: Too many field references: 70613; max is 65536 I got the build working.
My question is now... can I add some code to Unity, that will get exported with the build project, so I don't have to add these lines of code everytime I make a new build? It is not a HUGE problem, but it would be nice to free myself from the future hassle.
EDIT: Adding the code to MainTemplate.gradle works great if I just want to export to Android Studio and change the AndroidManifest.xml manually in there... but if I change the AndroidManifest.xml before exporting from Unity, then nothing works...
This is my original manifest:
<application android:theme="@style/UnityThemeSelector" android:icon="@drawable/app_icon" android:label="@string/app_name" android:debuggable="true" android:name="io.fabric.unity.android.FabricApplication">
In the direction part 2 it says:
2.Add android:name="android.support.multidex.MultiDexApplication" > to the application tag in the AndroidManifest.xml file.
Does "Add" mean add, or does is mean "change"?
<application android:theme="@style/UnityThemeSelector" android:icon="@drawable/app_icon" android:label="@string/app_name" android:debuggable="true" android:name="android.support.multidex.MultiDexApplication" >
??