Closed shikechen closed 4 years ago
Build the latest plaid-master project error.
Caused by: java.lang.NumberFormatException: For input string: "" Integer.parseInt('git rev-list --count HEAD'.execute([], project.rootDir).text.trim()) \plaid-master\build.gradle' line: 77
Android Studio version:
Android Studio 3.5.1 Build #AI-191.8026.42.35.5900203, built on September 26, 2019 JRE: 1.8.0_202-release-1483-b03 amd64 JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o Windows 10 10.0
excuse, do you solve this ?
I can not reproduce the issue on a clean checkout of master.
The issues originates here. Most likely because Plaid is not part of a git repository on your local machine. Either change this or git clone git@github.com:android/plaid.git
.
I went through the exact same issue. Not even git clone git@github.com:android/plaid.git
solved it.
You can annotating some code。
ext { // gitCommitCount = 100 + // Integer.parseInt('git rev-list --count HEAD'.execute([], project.rootDir).text.trim()) }
// versionCode rootProject.gitCommitCount
finally,you can run it. Good lucky