apply plugin: 'com.android.library' android { compileSdkVersion 26 buildToolsVersion "26.0.2" defaultConfig { minSdkVersion 16 targetSdkVersion 25 versionCode 1 versionName "1.0" } sourceSets { main { // let gradle pack the shared library into apk jniLibs.srcDirs = ['./lib'] } } } repositories { maven { // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm url "$rootDir/../node_modules/react-native/android" } } dependencies { compile 'com.facebook.react:react-native:+' }