apk unable to install see console ive tried everything please help am really frustrated

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:\Users aata\AppData\Local\Android\sdk\platform-tools\adb.exe -s “84f25448” install -r “C:\Users aata\Desktop\speedfreak.apk”

stderr[
Invalid APK file: C:\Users aata\Desktop\speedfreak.apk
]
stdout[

]
exit code: 1
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.PostProcessor.Tasks.PublishPackage.UploadAPK (Boolean retryUpload)
UnityEditor.Android.PostProcessor.Tasks.PublishPackage.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context)
UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context)
UnityEditor.BuildPlayerWindow:BuildPlayerAndRun()

These 3 three steps always works for me in this kind of problem: 1. Check the device a. Device is connected properly. b. Enable USB Debugging Mode on. c. Re start Device. 2. Update Android SDK. 3. Re start Unity. Try if this help.

1 Answer

1

i had the same issue you probably updated android sdk to latest version and unity throws an error
downgrade your sdk and this will fix