Android Game Development Extension – Failed to install APK -VS2019

  android, apk, c++

I followed this tutorial and downloaded the official sample. The project builds without errors and I can run the app on my phone through USB in Debug mode arm64-v8a but when I build the .apk in Release mode, I cant run it in the emulator (it always fails to install), and when I try to run it on my phone through USB like in Debug mode it fails to install and gives me this log:

I1009 11:57:21.775 GoogleAndroidDebuggerLaunchProvider.cs:90] Launching process
I1009 11:57:21.942 GoogleAndroidDebuggerLaunchProvider.cs:123] Using APK at C:UserskrystofDesktopgames-samples-mainagdkagdeendless-tunnelReleaseAndroid-arm64-v8aendlesstunnel-arm64-v8a.apk.
I1009 11:57:21.942 GoogleAndroidDebuggerLaunchProvider.cs:158] Launching user specified app component 'com.google.sample.tunnel/.MainActivity'...
I1009 11:57:22.286 DeployServiceProcess.cs:62] 11:57:22 E/SplitApkInstallerBase: Failed to commit install session 1051035513 with command cmd package install-commit 1051035513. Error: INSTALL_PARSE_FAILED_NO_CERTIFICATES: Failed collecting certificates for /data/app/vmdl1051035513.tmp/0_endlesstunnel-arm__-v_a: Failed to collect certificates from /data/app/vmdl1051035513.tmp/0_endlesstunnel-arm__-v_a: Attempt to get length of null array
E1009 11:57:22.287 GoogleAndroidDebuggerLaunchProvider.cs:225] APK Install failed: Google.DeployService.DeployServiceException: The application could not be installed: INSTALL_PARSE_FAILED_NO_CERTIFICATES
Not possible to execute install
   at Google.DeployService.DeployServiceClient.<InstallApk>d__16.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Google.VisualStudio.Android.Common.SdkTools.<InstallApkAsync>d__21.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Google.VisualStudio.Android.Debugger.GoogleAndroidDebuggerLaunchProvider.<>c__DisplayClass10_0.<<LaunchAsync>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.VisualStudio.Threading.ThreadingTools.<WithCancellationSlow>d__9.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.VisualStudio.Threading.JoinableTask.<JoinAsync>d__76.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Google.VisualStudio.Android.Debugger.CancelableTask.<>c__DisplayClass18_0.<<TryJoin>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.VisualStudio.Threading.JoinableTask.CompleteOnCurrentThread()
   at Microsoft.VisualStudio.Threading.JoinableTask`1.CompleteOnCurrentThread()
   at Microsoft.VisualStudio.Threading.JoinableTaskFactory.Run[T](Func`1 asyncMethod, JoinableTaskCreationOptions creationOptions)
   at Google.VisualStudio.Android.Debugger.CancelableTask.TryJoin(JoinableTask joinableTask, TimeSpan timeout)
   at Google.VisualStudio.Android.Debugger.CancelableTask.Run()
   at Google.VisualStudio.Android.Debugger.GoogleAndroidDebuggerLaunchProvider.<LaunchAsync>d__10.MoveNext()

Source: Windows Questions C++

LEAVE A COMMENT