def safeExtGet(prop, fallback) { rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback } buildscript { repositories { google() jcenter() } dependencies { classpath 'com.android.tools.build:gradle:3.5.2' } } apply plugin: 'com.android.library' android { compileSdkVersion safeExtGet('compileSdkVersion', 25) buildToolsVersion safeExtGet('buildToolsVersion', '25.0.3') defaultConfig { minSdkVersion safeExtGet('minSdkVersion', 16) targetSdkVersion safeExtGet('targetSdkVersion', 22) versionCode 1 versionName "1.0" renderscriptTargetApi 23 renderscriptSupportModeEnabled true } lintOptions { abortOnError false } } repositories { mavenCentral() } dependencies { //noinspection GradleDynamicVersion implementation 'com.facebook.react:react-native:+' }