stanfy / spoon-gradle-plugin

Gradle plugin for Spoon.
Apache License 2.0
353 stars 79 forks source link

INSTALL_PARSE_FAILED_NO_CERTIFICATES when using with #151

Open ligi opened 7 years ago

ligi commented 7 years ago

I want to use spoon on my release builds with this:

testBuildType "release"

unfortunately when running spoon I get INSTALL_PARSE_FAILED_NO_CERTIFICATES. The signing config for release is set in the build.gradle

vbarthel-fr commented 7 years ago

It might be a little too late, but it seems that gradle is not configured for signing your apk in release. Correct me if I'm wrong, but I guess when you want to build a release version you are using the wizard of AndroidStudio to provide the keystore and password information?

See https://developer.android.com/studio/publish/app-signing.html#gradle-sign section Configure Gradle to sign your APK

ligi commented 7 years ago

thanks for the follow-up. But it is configured correctly - if I do a assembleRelease I am getting a signed apk

vbarthel-fr commented 7 years ago

Erf, my bad :( I will try to change the test build type on one of my project and see if I have the same error =)

vbarthel-fr commented 7 years ago

It took me more than expected to make my androidTest build with the "release" build types, but it seems to work for the project I tested on.

Note that I did not run the "spoon" task but rather the "spoonMyVariantReleaseAndroidTest" task since I have a multiple flavors and dimensions.

What version of the spoon-gradle-plugin are you using?

ligi commented 7 years ago

Thanks for the info - then I will try this again - currently I am on 1.2.2 - but I think I was on an older version at this point in time