- Home /
Unable to build my project on android phone
Hi guys please help: com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.dex.DexException: Multiple dex files define Lcom/unity3d/ads/BuildConfig; See the Console for details.
Pleeeeeeeeeese help because i am on pc and cannot test my game otherwise. Any help would be appreciated. Thanks!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Unity 2017.3.ob.10 Jdk=8 android studio = latest version
How did you configure your playing setting and can you show me your preference .
I'm not an expert but com.android.dex.DexException: $$anonymous$$ultiple dex files define Lcom/unity3d/ads/BuildConfig;
seems to indicate you have added your Ads plugin multiple times
Any ideas on how to fix it Thanks a lot man
I don't have any idea sorry. I've never used Ads plugins.
Answer by Ginxx009 · Dec 08, 2017 at 09:17 AM
Here's a tip and you might wanna try this remedy :
Close Unity Editor
Backup your project
Remove any folder or meta file called UnityAds from your project’s Assets/Libs folder
Remove any folder or meta file called UnityAds from your project’s Assets/Plugins/Android folder
Start Unity
Build your project for Android
If this doesn’t work, try doing an Assets > Reimport All, then building again. Hopefully, future version of Unity will solve this problem automatically. Good luck out there!
Hey dude thanks i tried to change the bundle identifier to my previous one and it worked. I will reward you with some points. Thanks a lot THAN$$anonymous$$S
Answer by manaslegodesigns · Dec 08, 2017 at 09:53 AM
Hi see i tried this out,it now comes to the stage where it asks to install the app. Then it does not install the app but gives this error. Please help Thanks for the idea of removing ads. heres the error: CommandInvokationFailure: Unable to install APK to device. Please make sure the Android SDK is installed and is properly configured in the Editor. See the Console for more details. /Users/apple/Library/Android/sdk/platform-tools/adb -s "13cbda3c9804" install -r "/Users/apple/Desktop/Cubed Scene1/TheBestGame.apk"
stderr[ Failed to install /Users/apple/Desktop/Cubed Scene1/TheBestGame.apk: Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE: Package com.manas.bam signatures do not match the previously installed version; ignoring!] ] stdout[
] exit code: 1 UnityEditor.Android.Command.WaitForProgramToRun (UnityEditor.Utils.Program p, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) UnityEditor.Android.ADB.RunInternal (System.String[] command, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) UnityEditor.Android.ADB.Run (System.String[] command, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) UnityEditor.Android.AndroidDevice.Exec (System.String[] command, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) UnityEditor.Android.AndroidDevice.Install (System.String apkfile, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit) UnityEditor.Android.AndroidDeploymentTargetsExtension+c_AnonStorey2.<>m0 () UnityEditor.Android.AndroidDeploymentTargetsExtension.UploadAPK (UnityEditor.BuildReporting.BuildReport buildReport, UnityEditor.Android.AndroidDevice device, UnityEditor.ProgressTaskManager taskManager) UnityEditor.Android.AndroidDeploymentTargetsExtension+cAnonStorey1.<>m0 () UnityEditor.ProgressTaskManager.Run () (at /Users/builduser/buildslave/unity/build/Editor/Mono/Utils/ProgressBarUtils.cs:71) UnityEditor.Android.AndroidDeploymentTargetsExtension.LaunchBuildOnTarget (UnityEditor.BuildReporting.BuildReport buildReport, DeploymentTargetId targetId, UnityEditor.ProgressHandler progressHandler) UnityEditor.DeploymentTargets.DeploymentTargetManager.LaunchBuildOnTarget (BuildTargetGroup targetGroup, UnityEditor.BuildReporting.BuildReport buildReport, DeploymentTargetId targetId, UnityEditor.ProgressHandler progressHandler) (at /Users/builduser/buildslave/unity/build/Editor/Mono/DeploymentTargets/DeploymentTargetManager.cs:36) UnityEditor.PostprocessBuildPlayer+cAnonStorey0.<>m_1 () (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:181) UnityEditor.ProgressTaskManager.Run () (at /Users/builduser/buildslave/unity/build/Editor/Mono/Utils/ProgressBarUtils.cs:71) UnityEditor.PostprocessBuildPlayer.Launch (BuildTargetGroup targetGroup, BuildTarget buildTarget, System.String path, System.String productName, BuildOptions options, UnityEditor.BuildReporting.BuildReport buildReport) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:197) UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)