question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

versioning 'Tag' causes an error on build.gradle

See original GitHub issue

Bug description

Warning: Could not parse "1.0.5
" to semver, defaulting android version code to 1
FAILURE: Build failed with an exception.

* Where:
Build file '/github/workspace/Temp/gradleOut/launcher/build.gradle' line: 26

* What went wrong:
Could not compile build file '/github/workspace/Temp/gradleOut/launcher/build.gradle'.
> startup failed:
  build file '/github/workspace/Temp/gradleOut/launcher/build.gradle': 26: expecting ''', found '\n' @ line 26, column 27.
             versionName '1.0.5
                               ^
  
  1 error

Additional details

Sample Project

Tested only on unity versions

  • 2019.4.12f1
  • 2020.3.10f1

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
webbertakkencommented, Sep 6, 2021

Fixed by https://github.com/game-ci/unity-builder/pull/287 in https://github.com/game-ci/unity-builder/releases/tag/v2.0-alpha-13.

Please feel free to comment if the issue is in fact not resolved.

1reaction
RaadDalaqcommented, Sep 5, 2021

@webbertakken It was through our unity C# build pipeline, not sure if it’s applicable, we didn’t modify the repo, I can try and fix it in my fork later, just a bit busy currently.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Tagging of project with sub-project fails · Issue #94 - GitHub
I have a Git project that contains sub-projects. ... a release version when there are uncommitted changes at net.vivin.gradle.versioning.
Read more >
Gradle is not allowing semantic versioning - Stack Overflow
I am trying to create a project with teh ...
Read more >
Locking dependency versions - Gradle User Manual
Use of dynamic dependency versions (e.g. 1.+ or [1.0,2.0) ) makes builds non-deterministic. This causes builds to break without any obvious change, ...
Read more >
Configure build variants | Android Developers
This page shows you how you can configure build variants to create different versions of your app from a single project and how...
Read more >
Simplified version management with Gradle 7
Tags : gradle catalog convenience ... recompilation of build scripts and invalidate the build script classpath, causing up-to-date checkness ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found