-
-
Save tlvenn/2c8922ec379b48ff421ed0acd6dc824f to your computer and use it in GitHub Desktop.
React Native Android Library SDK Versions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
subprojects { | |
ext { | |
compileSdk = 25 | |
buildTools = "25.0.1" | |
minSdk = 19 | |
targetSdk = 25 | |
} | |
afterEvaluate { project -> | |
if (!project.name.equalsIgnoreCase("app") | |
&& project.hasProperty("android")) { | |
android { | |
compileSdkVersion compileSdk | |
buildToolsVersion buildTools | |
defaultConfig { | |
minSdkVersion minSdk | |
targetSdkVersion targetSdk | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you're using gradle 3.1.0 which might be needed to work around some other bugs, then update compileSdk to 27 and possibly also increase targetSdk
I added the code block from that gist at the end of android/build.gradle so the topmost or "root" build.gradle for the android version of the app.
This worked in my case:
I had a dependency set for sdk 16, so had to set minSdk to 16 to avoid one warning about that.