Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Monday, December 15, 2014 2:24 AM
I can no longer deploy my app to my phone/emulator
Any ideas? I don't know if it was the cause, but I did create a signed assembly prior to this.
All replies (11)
Monday, December 15, 2014 7:44 AM
This could have several causes. I would recommend to open your "build output" window in Xamarin studio and put the log verbosity to detailed in your settings, then try to build again and see what comes up in the build output.
Monday, December 15, 2014 1:36 PM
Something wrong with the signing.
Task "AndroidCreateDebugKey" skipped, due to false condition; ('$(AndroidKeyStore)'=='' and !Exists ('$(_ApkKeyStore)')) was evaluated as ('True'=='' and !Exists ('buzz.keystore')).
Done building target "_ResolveAndroidSigningKey" in project "buzz.csproj".
Target "_Sign" in file "C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets":
Building target "_Sign" completely.
Output file "bin\Debug\buzz.buzz-Signed.apk" does not exist.
Task "AndroidSignPackage"
C:\Program Files (x86)\Java\jdk1.6.0_39\\bin\jarsigner.exe -keystore buzzconx.keystore -storepass busybee999 -keypass busybee999 -digestalg SHA1 -sigalg md5withRSA -signedjar bin\Debug\\buzz.buzz-Signed-Unaligned.apk "C:\Users\Stuart\Documents\Projects\buzz\buzz\obj\Debug\android\bin\buzz.buzz.apk" buzz
jarsigner error: java.lang.RuntimeException: keystore load: C:\Users\Stuart\Documents\Projects\buzz\buzz\buzz.keystore (The system cannot find the file specified)
C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(1503,2): error MSB6006: "jarsigner.exe" exited with code 1.
Done executing task "AndroidSignPackage" -- FAILED.
Done building target "_Sign" in project "buzz.csproj" -- FAILED.
Monday, December 15, 2014 5:19 PM
I deleted the keystore and started again. All ok now.
Tuesday, December 16, 2014 1:17 PM
Once you have signed a package, how do you rebuild it? If I just rebuild it with "release", then I get the error again.
If I rebuild it with Project -> Create Android Package, I get this error. If I rebuild it with Project -> Publish Android Application, and reselect the existing keystore, my installs complain there is a new key, and I must delete the existing app.
Sunday, December 21, 2014 3:19 AM
OK for info: seems you have to have the .keystore in the project folder, and not the solution folder, even if your paths are set to the solution folder. Bug in Xamarin Studio maybe? The paths you set, only seem to work with a release build, not debug.
Thursday, November 5, 2015 6:13 AM
Refer this SO post :
Xamarin and APK Signing - Change path to JarSigner
Tuesday, May 24, 2016 10:12 AM
In my case the .csproj had incorrect path to the keystore file.
<>(PATH HERE)<>
Tuesday, May 24, 2016 10:15 AM
In my case the .csproj had incorrect path to the keystore file.
Look for AndroidSigningKeyStore tag in .csproj
Friday, November 4, 2016 1:32 PM
Hi I'm having a similar problem. I'm in debug mode and when I play the app I get this error: "/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets: Warning: 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-10-28) or after any future revocation date. (Phoneword)" I understand tha in debug mode Xamarin.Android uses the debug.keystore by default no? but After Build in my project folder I have not any keystore file.
Any idea please?
Regards
Monday, September 18, 2017 9:38 AM
In my project keystore file was missing. I downloaded manually this file from server and added to project.
Wednesday, November 8, 2017 3:33 AM
I was attempting to use the ~/.android/debug.keystore in cake but it wouldn't work. I needed to use this for getting the home path: string home; if(IsRunningOnWindows()) { home = $"{EnvironmentVariable("HOMEDRIVE")}{EnvironmentVariable("HOMEPATH")}"; } else { home = EnvironmentVariable("HOME"); }