Hi!
When I use 1.3.0, I get this error:
*:app:zipalignFamilywallStaging FAILEDFAILURE: Build failed with an
exception.* What went wrong:A problem was found with the configuration of
task ':app:zipalignFamilywallStaging'.> File
'/Users/bod/gitrepo/FamilyWall/app/build/outputs/apk/app-familywall-staging-unaligned.apk'
specified for property 'inputFile' does not exist.* Try:Run with
--stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output.BUILD FAILED*
I think it is related to me trying to choose a specific name for the apk
outputs.
This is how I do it:
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> * applicationVariants.all { variant -> // Custom APK names (do not
> do this for 'dev' build type) if
> (!variant.buildType.name.contains('dev')) { def baseFileName =
> "${variant.flavorName}-${project.gitBranch.replaceAll('/',
> '_')}-${variant.versionCode}-${variant.buildType.name}"
> variant.outputs.each { output -> // Unaligned (name it
> 'unsigned' because we remove the signature from the apk later)
> def unalignedFileName = "${baseFileName}-unsigned.apk"
> File parent = output.packageApplication.outputFile.parentFile
> output.packageApplication.outputFile = new File(parent,
> unalignedFileName) // Signed def
> signedFileName = "${baseFileName}-signed.apk" parent =
> output.outputFile.parentFile output.outputFile = new
> File(parent, signedFileName) } }}*
Did something change in 1.3.0 that could explain that this no longer works?
Thanks a lot for your help.
--
BoD
--
You received this message because you are subscribed to the Google Groups
"adt-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.