plaid: After cloning build fails

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?

About this issue

  • Original URL
  • State: open
  • Created 5 years ago
  • Comments: 15 (1 by maintainers)

Most upvoted comments

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())

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()