Skip to content

Feature request - Error when trying to set unusable version code #205

Open
@mrambow

Description

Hi :)

I recently had a build issue on android because of a "small" problem:
In a project, we set the versionCode like YYMMDD###. Because of a minor error, the code was changed to generate not 3, but 4 digits at the end of that versionCode. That exceeded the maximum length allowed for this value (2100000000), but gradle only gave the following error (line 10 is versionCode):

FAILURE: Build failed with an exception.

* Where:
Build file '/android/app/build.gradle' line: 10

* What went wrong:
A problem occurred evaluating project ':app'.
> Value is null

Would it be possible to generate a warning/error when trying to set a versionCode higher than allowed with trapeze?
Or should I file an issue with gradle for a better error message?

Thanks
Marc

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions