From 18ffe12203d03b4e960d61d7bb50cd02bba94663 Mon Sep 17 00:00:00 2001 From: Jason Safaiyeh Date: Thu, 17 Sep 2020 09:25:56 -0700 Subject: [PATCH] Add an explicit NDK version to Android template (#29403) Summary: Added an explicit NDK version to the Android template. This allows tooling to detect which NDK version to install automatically. ## Changelog [Android] [Added] - Add an explicit NDK version to Android template Pull Request resolved: https://github.com/facebook/react-native/pull/29403 Test Plan: Template builds as it should. NDK version gets installed with initial Android set up. Reviewed By: passy Differential Revision: D23752007 Pulled By: fkgozali fbshipit-source-id: 31c33f275f94a4a62338a61e79b31c4b996969bf --- template/android/app/build.gradle | 2 ++ template/android/build.gradle | 1 + 2 files changed, 3 insertions(+) diff --git a/template/android/app/build.gradle b/template/android/app/build.gradle index 1215ed78d32..a5a0ea4e8bc 100644 --- a/template/android/app/build.gradle +++ b/template/android/app/build.gradle @@ -121,6 +121,8 @@ def jscFlavor = 'org.webkit:android-jsc:+' def enableHermes = project.ext.react.get("enableHermes", false); android { + ndkVersion rootProject.ext.ndkVersion + compileSdkVersion rootProject.ext.compileSdkVersion compileOptions { diff --git a/template/android/build.gradle b/template/android/build.gradle index 86351cce876..2bafa1f491c 100644 --- a/template/android/build.gradle +++ b/template/android/build.gradle @@ -6,6 +6,7 @@ buildscript { minSdkVersion = 19 compileSdkVersion = 29 targetSdkVersion = 29 + ndkVersion = "20.1.5948944" } repositories { google()