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.

After cloning build fails

See original GitHub issue

After a clean clone I get the following error while building:

Gradle Sync Issues
build.gradle :
ERROR: For input string: "" 

When opening the file it mentions:

ext {
    // query git for the commit count to automate versioning.
    gitCommitCount = 100 +
            Integer.parseInt('git rev-list --count HEAD'.execute([], project.rootDir).text.trim())
}

But I do not see the issue?

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:15 (1 by maintainers)

github_iconTop GitHub Comments

5reactions
udhay24commented, Jun 3, 2020

I had the same issue on Catalina. i managed to fix it by removing both the params from the execute() function.

gitCommitCount = 100 +
         Integer.parseInt('git rev-list --count HEAD'.execute().text.trim())
1reaction
Micpolcommented, Dec 11, 2019

What helped me building plaid was to get rid of gitCommitCount and set version code manually. I also had an issue with a ClientAuthInterceptor class:

val url = chain.request().url.newBuilder()

where url is package private, so I had to use a public url method. So far seems to be working just fine:

val url = chain.request().url().newBuilder()
Read more comments on GitHub >

github_iconTop Results From Across the Web

Error with build after cloning repo #3518 - GitHub
The build fails. The error indicates that there is an errant quote in the path to cppwinrt. But I'm wondering if the underlying...
Read more >
After Successful Cloning, my projects comes up with ...
If you try to build this solution, will it works fine or failed. Per the error message, please have a try with the...
Read more >
How to solve this Gradle build error that happens after cloning ...
I just cloned a project and I got this error. My collegue who cloned the same project does not have this error. I...
Read more >
Build fails to clone repository - Atlassian Community
Solved: Bamboo build fails to pull code from Bitbucket server. ... After creating a new branch, code pull now works correctly.
Read more >
Why doesn't my project build after cloning from git?
Then I cloned to another machine. The clone appeared to work ok. However when I tried to run the project, I am getting...
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