Closed Crystal-Spider closed 2 years ago
Update: I managed to solve the second error (unable to resolve class OkHttpClient.Builder
).
I just needed to add an import statement to my build.gradle file import okhttp3.OkHttpClient
.
Now regardless of manually creating the OkHttpClient or leaving it to its default I get the first error
No signature of method: build_4pkvxzzeeuemixxfixjnmbsjs.githubRelease() is applicable for argument types: (build_4pkvxzzeeuemixxfixjnmbsjs$_run_closure7) values: [build_4pkvxzzeeuemixxfixjnmbsjs$_run_closure7@554984f2]
In the end the error was caused by the field generateReleaseNotes
. I was using version 2.3.7 when that field is supported in version 2.4.1
I suggest to update the readme with the latest version, currently it still says 2.3.7 in the import examples and that lead me to think it was the latest.
I get the following error:
My build.gradle file is as follows (it's a Minecraft mod):
If I try to uncomment the line with
client new OkHttpClient.Builder().writeTimeout(5, TimeUnit.Minutes).build()
I get the following error instead:Yes, I am sure it's not something else causing the issue because I removed the part inherent to githubRelease and I got no error.
Yes, all the properties referenced are correctly resolved.
What am I doing wrong?