Closed murraybauer closed 7 years ago
I just used the built-in VSTS Android Signing task to sign the .apk and it worked OTB.
Interesting. The task is actually not specifying a property file interestingly - Cordova itself is doing that. This could be a Cordova bug.
Two questions:
Yes, the problem was that the release.apk file was unsigned with the certificate provided.
I ran this command to verify:
zipalign -c -v 4 release
I tried ticking the ant build box to see if this was required to enable the signing - thinking ant was used to run the jarsigner and zipalign command tools. When I enabled this I started to get errors that the file path to my keystone etc was incorrect.
As mentioned, I subsequently just unticked the ant build, added the native VSTS Android Signing which signed the file.
@ryuyu will take a look. There was a recent vsts-task-lib update that could have had an unexpected impact on arg passing for Android signing - or there's an issue with Cordova 6.1.1. Glad you are unblocked in the mean time, however.
The ant thing appears to be a real issue which I am currently in the process of digging in to.
However, I was unable to reproduce the signing issue that you were seeing with Gradle. I tested against both windows and Ubuntu and was able to generate a signed binary in both cases with the default gradle build.
Could you maybe do a gradle build and post us the log so I can see what is being passed to cordova and if there are any warnings/errors? Thanks!.
Android signing was recently patched.
Hello, all! I'm closing out this issue since there hasn't been any recent discussion. Feel free to respond if you're still having problems here.
I have Cordova build task in my definition: Platform:Android Configuration:Release
I have set the advanced android settings with the signing keys and checked forced Ant Build otherwise the release.apk was unsigned.
However, it fails saying:
You must specify a property filename when using the -propertyfile argument
I am building using a local agent on MacOSX with the latest apache ant version 1.9.7 and Cordova 6.1.1
Based on the source code it looks like the VSTS task generates a .properties file for the ant task but the generated arguments for the ant command are not correct