- Home /
Unable to install APK to device
I want to build my game, to see how it works on my phone. I tried so often to build with other player settings, but it my phone doesnt want to install my game. Unity has the correct SDK path and USB-Debugging is enabled on my phone. If I build and run, this comes out:
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. C:\Program Files\Unity\Hub\Editor\2020.2.0f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platform-tools\adb.exe -s "LGH870b87dfe9" install -r -d "C:\Users\sperl\Desktop\Wall break test5.apk"
stderr[ adb: failed to install C:\Users\sperl\Desktop\Wall break test5.apk: ] stdout[
] exit code: 1 UnityEditor.Android.Command.WaitForProgramToRun (UnityEditor.Utils.Program p, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at :0) UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at :0) UnityEditor.Android.Command.Run (System.String command, System.String args, System.String workingdir, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at :0) UnityEditor.Android.ADB.RunInternal (System.String[] command, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at :0) UnityEditor.Android.ADB.Run (System.String[] command, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at :0) UnityEditor.Android.AndroidDevice.Exec (System.String[] command, System.String errorMsg) (at :0) UnityEditor.Android.AndroidDevice.Install (System.String apkfile) (at :0) UnityEditor.Android.AndroidDeploymentTargetsExtension+<>c_DisplayClass16_0.b0 () (at :0) UnityEditor.Android.AndroidDeploymentTargetsExtension.UploadAPK (UnityEditor.Android.AndroidBuildProperties buildProperties, UnityEditor.Android.AndroidDevice device, UnityEditor.Android.AndroidDeploymentTargetsExtension+LaunchProgressTaskManager taskManager) (at :0) UnityEditor.Android.AndroidDeploymentTargetsExtension+<>cDisplayClass12_1.b2 () (at :0) UnityEditor.ProgressTaskManager.Run () (at :0) UnityEditor.Android.AndroidDeploymentTargetsExtension.LaunchBuildOnTarget (UnityEditor.DeploymentTargets.IDeploymentTargetsMainThreadContext context, UnityEditor.BuildProperties buildProperties, UnityEditor.DeploymentTargets.DeploymentTargetId targetId, UnityEditor.ProgressHandler progressHandler) (at :0) UnityEditor.DeploymentTargets.DeploymentTargetManager.LaunchBuildOnTarget (UnityEditor.BuildProperties buildProperties, UnityEditor.DeploymentTargets.DeploymentTargetId targetId, UnityEditor.ProgressHandler progressHandler) (at :0) UnityEditor.PostprocessBuildPlayer+<>cDisplayClass19_1.b_1 () (at :0) UnityEditor.ProgressTaskManager.Run () (at :0) UnityEditor.PostprocessBuildPlayer.LaunchOnTargets (UnityEditor.BuildTargetGroup targetGroup, UnityEditor.BuildTarget buildTarget, UnityEditor.Build.Reporting.BuildReport buildReport, System.Collections.Generic.List`1[T] launchTargets) (at :0) UnityEditor.Android.PostProcessAndroidPlayer.Launch (UnityEditor.BuildTarget target, System.String installPath, UnityEditor.Build.Reporting.BuildReport report) (at :0) UnityEditor.Android.AndroidBuildPostprocessor.LaunchPlayer (UnityEditor.Modules.BuildLaunchPlayerArgs args) (at :0) UnityEditor.PostprocessBuildPlayer.Launch (UnityEditor.BuildTargetGroup targetGroup, UnityEditor.BuildTarget buildTarget, System.String path, System.String productName, UnityEditor.BuildOptions options, UnityEditor.Build.Reporting.BuildReport buildReport) (at :0) UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)
Something about you sdk i think, there's maybe some step that you done wrong while configuring for an apk. $$anonymous$$ight wanna recheck internet Sorry if this isn't helping
Your answer
Follow this Question
Related Questions
Gradle Build Error 1 Answer
I can't build a game for android 2 Answers
Cannot build for Android 2 Answers
[ERROR ][Android Build] [5.3.4] Not able to build 1 Answer
BuildFailedException: Incremental Player build failed! 2 Answers