apply plugin: 'com.android.library' android { compileSdkVersion 25 buildToolsVersion "25.0.2" defaultConfig { minSdkVersion 16 targetSdkVersion 25 versionCode 1 versionName "1.0" ndk { abiFilters "armeabi-v7a", "x86" } } // Include "lib/" as sources, unfortunetely react-native link can't handle // setting up alternative gradle modules. We still have "lib" defined as a // standalone gradle module just to be used in AndroidNativeExample sourceSets { main.java.srcDirs += 'lib/src/main/java' } } dependencies { //noinspection GradleDynamicVersion provided 'com.facebook.react:react-native:+' }