- Home /
Question by
siddharth3322 · Sep 05, 2018 at 09:48 AM ·
androidbuild-errorandroid build
Could not find Multidex Version - Gradle Build Failed
I was facing too many file references issue so I have followed this answer and applied solution FIX WITHOUT EXPORTING THE PROJECT:
Too many field references: 70613; max is 65536
After applying I was getting this kind of build error:
Here is my mainTemplate.gradle file content:
Here is my AndroidManifest file content:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" package="com.unity3d.player"
android:installLocation="preferExternal" android:versionCode="1" android:versionName="1.0">
<supports-screens android:smallScreens="true" android:normalScreens="true" android:largeScreens="true" android:xlargeScreens="true" android:anyDensity="true" />
<application android:theme="@android:style/Theme.NoTitleBar.Fullscreen" android:icon="@drawable/app_icon" android:label="@string/app_name" android:debuggable="true"
android:name="android.support.multidex.MultiDexApplication">
<activity android:name="com.unity3d.player.UnityPlayerActivity" android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<meta-data android:name="unityplayer.UnityActivity" android:value="true" />
</activity>
<activity android:name="com.facebook.unity.FBUnityLoginActivity"
android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen"
android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen" />
<activity android:name="com.facebook.unity.FBUnityDialogsActivity"
android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen"
android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen" />
<activity android:name="com.facebook.unity.FBUnityAppLinkActivity" android:exported="true" />
<activity android:name="com.facebook.unity.FBUnityDeepLinkingActivity" android:exported="true" />
<activity android:name="com.facebook.unity.FBUnityGameRequestActivity" />
<activity android:name="com.facebook.unity.FBUnityCreateGameGroupActivity" />
<activity android:name="com.facebook.unity.FBUnityJoinGameGroupActivity" />
<activity android:name="com.facebook.unity.AppInviteDialogActivity" />
<meta-data android:name="com.facebook.sdk.ApplicationId" android:value="fb173024350053963" />
<provider android:name="com.facebook.FacebookContentProvider" android:authorities="com.facebook.app.FacebookContentProvider173024350053963" android:exported="true" />
</application>
</manifest>
I hope, I have given sufficient details for the problem so give me some suggestions to overcome from this.
dodgels-build-error.png
(126.2 kB)
maintemplategradle.png
(171.2 kB)
Comment
Your answer
Follow this Question
Related Questions
"CommandInvokationFailure: Gradle build failed" when building to Android 1 Answer
I can't build a game for android 2 Answers
How to correct the errors with my android build 0 Answers
Building for android freezes unity editor 2 Answers
Gradle Build Error : Program type already present: com.google.unity.BuildConfig 4 Answers