Skip to content

versionCode Input Field in Android Build UI Truncates to 9-digit Values #877

@hightowe

Description

@hightowe

Description:
The input field for versionCode in the Solar2D Android Build Setup GUI on Windows has a character limit of 9 digits that prevents users from inputting or viewing longer version codes (in my case, 10-digits).

Solar2D correctly respects 10-digit versionCode values defined in build.settings during the build process, the GUI input box truncates these values when they are pasted or displayed. For example, pasting 1768083670 results in the field only holding 176808367. I actually went a couple of weeks without noticing it because my build process auto-populates the versionCode value in the build.settings file.

Steps to Reproduce:

  1. Open a project in Solar2D Simulator.
  2. Navigate to File > Build > Android....
  3. Attempt to paste a 10-digit integer (e.g., 1768083670) into the Version Code field.
  4. Observe that the last digit is truncated.

Expected Behavior:
The versionCode field should support up to the maximum value allowed by Android/Google Play, which is 2,147,483,647 (signed int32, and so up to 10 digits).

Actual Behavior:
The field truncates at 9 digits, leading to confusion as it appears the version code will be incorrect, even though the build.settings value is used correctly in the final package.

Environment:

  • Solar2D Version: 2025.3726 / 2025.11.4
  • OS: Windows (and not likely any others -- see later comment)

Metadata

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