java – Mono. AndroidTools. Installfailedexception: failed

I encountered this problem and my application will not compile I tried to use the playback service in my application, but it gave me resources. I was frustrated and deleted all the xamarin files and reinstalled everything Now the problem has disappeared and the error has appeared Any help would be appreciated P. I am a beginner of Android developers I have copied some of the following errors:

2>C:\Program Files\Java\jdk1.8.0_91\\bin\keytool.exe -list -alias androiddebugkey -storepass android -keypass android -keystore "C:\Users\xxxx\AppData\Local\Xamarin\Mono for Android\debug.keystore" 
2>C:\Program Files\Java\jdk1.8.0_91\\bin\jarsigner.exe -keystore "C:\Users\xxxx\AppData\Local\Xamarin\Mono for Android\debug.keystore" -storepass android -keypass android -digestalg SHA1 -sigalg md5withRSA -signedjar bin\Debug\\Messenger.Messenger-Signed-Unaligned.apk C:\Users\xxxx\Desktop\projects\test\Messenger\Messenger\obj\Debug\android\bin\Messenger.Messenger.apk androiddebugkey 
2>No -tsa or -tsacert is provided and this jar is not timestamped. Without a timestamp,users may not be able to validate this jar after the signer certificate's expiration date (2046-08-06) or after any future revocation date.
2>C:\Users\xxxx\AppData\Local\Android\android-sdk\build-tools\24.0.1\zipalign.exe 4 "C:\Users\xxxx\Desktop\projects\test\Messenger\Messenger\bin\Debug\Messenger.Messenger-Signed-Unaligned.apk" "bin\Debug\\Messenger.Messenger-Signed.apk" 
2>:Deployment Failed
2>Mono.AndroidTools.InstallFailedException: Failure [INSTALL_Failed_UPDATE_INCOMPATIBLE]
2>   at Mono.AndroidTools.Internal.AdbOutputParsing.Che`enter code here`ckInstallSuccess(String output,String packageName)
2>   at Mono.AndroidTools.AndroidDevice.<InstallPackage>c__AnonStoreyE.<>m__0(Task`1 t)
2>   at System.Threading.Tasks.ContinuationTaskFromResultTask`1.InnerInvoke()
2>   at System.Threading.Tasks.Task.Execute()
2>The "InstallPackageAssemblies" task Failed unexpectedly.
2>System.AggregateException: One or more errors occurred. ---> Xamarin.AndroidTools.AndroidDeploymentException: InternalError ---> Mono.AndroidTools.InstallFailedException: Failure [INSTALL_Failed_UPDATE_INCOMPATIBLE]
2>   at Mono.AndroidTools.Internal.AdbOutputParsing.CheckInstallSuccess(String output,String packageName)
2>   at Mono.AndroidTools.AndroidDevice.<InstallPackage>c__AnonStoreyE.<>m__0(Task`1 t)
2>   at System.Threading.Tasks.ContinuationTaskFromResultTask`1.InnerInvoke()
2>   at System.Threading.Tasks.Task.Execute()
2>   --- End of inner exception stack trace ---
2>   at Xamarin.AndroidTools.AndroidDeploySession.<RunLoggedAsync>c__async1.MoveNext()
2>--- End of stack trace from prevIoUs location where exception was thrown ---
2>   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2>   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2>   at Xamarin.AndroidTools.AndroidDeploySession.<StartAsync>c__async0.MoveNext()
2>   --- End of inner exception stack trace ---
2>   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
2>   at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout,CancellationToken cancellationToken)
2>   at System.Threading.Tasks.Task.Wait()
2>   at Xamarin.Android.Tasks.InstallPackageAssemblies.Execute()
2>   at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
2>   at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext()
2>---> (Inner Exception #0) Xamarin.AndroidTools.AndroidDeploymentException: InternalError ---> Mono.AndroidTools.InstallFailedException: Failure [INSTALL_Failed_UPDATE_INCOMPATIBLE]
2>   at Mono.AndroidTools.Internal.AdbOutputParsing.CheckInstallSuccess(String output,String packageName)
2>   at Mono.AndroidTools.AndroidDevice.<InstallPackage>c__AnonStoreyE.<>m__0(Task`1 t)
2>   at System.Threading.Tasks.ContinuationTaskFromResultTask`1.InnerInvoke()
2>   at System.Threading.Tasks.Task.Execute()
2>   --- End of inner exception stack trace ---
2>   at Xamarin.AndroidTools.AndroidDeploySession.<RunLoggedAsync>c__async1.MoveNext()
2>--- End of stack trace from prevIoUs location where exception was thrown ---
2>   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2>   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2>   at Xamarin.AndroidTools.AndroidDeploySession.<StartAsync>c__async0.MoveNext()<---
2>
2>Build Failed.
2>

Solution

Uninstall your app using ADB:

adb uninstall <your app's package name>

This clears all remaining xamarin libraries

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>