From 562c9f5dbc217e989640e6238825e64ddf7b82dd Mon Sep 17 00:00:00 2001 From: Matt Dole Date: Thu, 23 Mar 2023 14:24:51 +0100 Subject: [PATCH 1/2] fix: specify Kotlin version Prior to this change, attempts to build the Android example app failed with errors like 'Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15.' See this thread for a similar problem and the source of the solution: https://github.com/react-native-webview/react-native-webview/issues/2578 --- example/android/build.gradle | 1 + 1 file changed, 1 insertion(+) diff --git a/example/android/build.gradle b/example/android/build.gradle index 8569fee..eaba435 100644 --- a/example/android/build.gradle +++ b/example/android/build.gradle @@ -2,6 +2,7 @@ buildscript { ext { + kotlinVersion = "1.6.0" buildToolsVersion = "31.0.0" minSdkVersion = 21 compileSdkVersion = 31 From 876f744f41c7cec5219e3dd531372911231dbbd7 Mon Sep 17 00:00:00 2001 From: Matt Dole Date: Thu, 23 Mar 2023 14:26:05 +0100 Subject: [PATCH 2/2] fix: make gradlew executable executable Prior to this change, the 'yarn example android' command would fail because the gradlew file in the android example app was not an executable. --- example/android/gradlew | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 example/android/gradlew diff --git a/example/android/gradlew b/example/android/gradlew old mode 100644 new mode 100755