Home > Net >  VS2019 android deployment problems
VS2019 android deployment problems

Time:11-10

Originally is 2015, android application can be directly simulator debugging, archive in that mobile phones can run,
Replaced by 2019, the original program can generate the archive, but installed to the mobile phone is out directly, use the simulator run shows error below
//-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
ADB1000: Deployment failed
Xamarin. AndroidTools. AndroidSdkToolException: Failed to load signer "signer # 1
"Java. IO. IOException: Keystore was tampered with, or the password was incorrect
At sun. Security. The provider. JavaKeyStore. EngineLoad (JavaKeyStore. Java: 785)
At sun. Security. The provider. JavaKeyStore $JKS. EngineLoad (JavaKeyStore. Java: 56)
At sun. Security. The provider. KeyStoreDelegator. EngineLoad (KeyStoreDelegator. Java: 224)
At sun. Security. The provider. JavaKeyStore $DualFormatJKS. EngineLoad (JavaKeyStore. Java: 70)
The at Java. Security. KeyStore. Load (KeyStore. Java: 1445)
At com. Android. Apksigner. SignerParams. LoadKeyStoreFromFile (SignerParams. Java: 353)
At com. Android. Apksigner. SignerParams. LoadPrivateKeyAndCertsFromKeyStore (SignerParams. Java: 239)
At com. Android. Apksigner. SignerParams. LoadPrivateKeyAndCerts (SignerParams. Java: 181)
At com. Android. Apksigner. ApkSignerTool. Sign (ApkSignerTool. Java: 277)
At com. Android. Apksigner. ApkSignerTool. Main (83) ApkSignerTool. Java:
Under Caused by: Java. Security. UnrecoverableKeyException: Password verification failed
At sun. Security. The provider. JavaKeyStore. EngineLoad (JavaKeyStore. Java: 783)
. Nine more

The System.Runtime.Com pilerServices. TaskAwaiter. ThrowForNonSuccess (Task Task)
The System.Runtime.Com pilerServices. TaskAwaiter. HandleNonSuccessAndDebuggerNotification (Task Task)
In Xamarin. AndroidTools. PlatformPackage. & lt; ApkSigner> D__10. MoveNext ()
- an exception is thrown on a position in the stack trace to the end of the -- -- --
The System.Runtime.Com pilerServices. TaskAwaiter. ThrowForNonSuccess (Task Task)
The System.Runtime.Com pilerServices. TaskAwaiter. HandleNonSuccessAndDebuggerNotification (Task Task)
In Xamarin. AndroidTools. PlatformPackage. & lt; GetPlatformPackagePathAsync> D__5. MoveNext ()
- an exception is thrown on a position in the stack trace to the end of the -- -- --
The System.Runtime.Com pilerServices. TaskAwaiter. ThrowForNonSuccess (Task Task)
The System.Runtime.Com pilerServices. TaskAwaiter. HandleNonSuccessAndDebuggerNotification (Task Task)
In Xamarin. AndroidTools. AndroidDeploySession. & lt; InstallSharedPlatformAsync> D__114. MoveNext ()
- an exception is thrown on a position in the stack trace to the end of the -- -- --
The System.Runtime.Com pilerServices. TaskAwaiter. ThrowForNonSuccess (Task Task)
The System.Runtime.Com pilerServices. TaskAwaiter. HandleNonSuccessAndDebuggerNotification (Task Task)
In Xamarin. AndroidTools. AndroidDeploySession. & lt; EnsureCorrectSharedRuntimes> D__111. MoveNext ()
- an exception is thrown on a position in the stack trace to the end of the -- -- --
The System.Runtime.Com pilerServices. TaskAwaiter. ThrowForNonSuccess (Task Task)
The System.Runtime.Com pilerServices. TaskAwaiter. HandleNonSuccessAndDebuggerNotification (Task Task)
In Xamarin. AndroidTools. AndroidDeploySession. & lt; RunAsync> D__110. MoveNext ()
- an exception is thrown on a position in the stack trace to the end of the -- -- --
The System.Runtime.Com pilerServices. TaskAwaiter. ThrowForNonSuccess (Task Task)
The System.Runtime.Com pilerServices. TaskAwaiter. HandleNonSuccessAndDebuggerNotification (Task Task)
In Xamarin. AndroidTools. AndroidDeploySession. & lt; RunLoggedAsync> D__108. MoveNext ()

//-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Signature file whether old or new can't do,
Please advice, how to set up, how to configure the environment,

CodePudding user response:

Clean up the project to regenerate the file signature give it a try again,
  •  Tags:  
  • C#
  • Related