From b6ecd14bdebb6dc4ce54c3fbfb87f951a8091cb5 Mon Sep 17 00:00:00 2001 From: linonetwo Date: Thu, 8 Feb 2024 14:07:27 +0800 Subject: [PATCH] fix: No signature of method: org.gradle.internal.extensibility.DefaultExtraPropertiesExtension.kotlinVersion() is applicable for argument types: () values: [] https://github.com/expo/expo/issues/24945#issuecomment-1914306405 --- package.json | 3 ++- scripts/fix-gradle.mjs | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 scripts/fix-gradle.mjs diff --git a/package.json b/package.json index 301f23f..56e2735 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,8 @@ "start": "expo start", "start:tunnel": "expo start --tunnel --android", "start:devClient": "npx expo start --dev-client --android", - "web": "expo start --web" + "web": "expo start --web", + "postinstall": "zx scripts/fix-gradle.mjs" }, "dependencies": { "@react-native-async-storage/async-storage": "1.21.0", diff --git a/scripts/fix-gradle.mjs b/scripts/fix-gradle.mjs new file mode 100644 index 0000000..062d1a3 --- /dev/null +++ b/scripts/fix-gradle.mjs @@ -0,0 +1 @@ +await $`find ./node_modules -name "build.gradle" -exec sed -i 's/kotlinVersion()/kotlinVersion/g' {} +`;