Open m10653 opened 5 years ago
I have the same issue. Would like if you can fix because it is stopping me from creating a release build.
Try to add the following in your android/build.gradle
:
subprojects {
afterEvaluate {project ->
if (project.hasProperty("android")) {
android {
compileSdkVersion 28
buildToolsVersion "28.0.2"
}
}
}
}
Thank you @hazmi!
Add the following two flags to true in your gradle.properties file at ProjectFolder/android/gradle.properties
android.useAndroidX=true
android.enableJetifier=true
Execute
npm install --save-dev jetifier
npx jetify
npx react-native run-android
In your package.json add the following to scripts
"postinstall" : "npx jetify"
Build android fails on windows with basic init of react native. But running it though react-native run-android works. I have been trying to figure out this issue for almost three days on one of my projects and this is the simplest configuration that show this issue. Steps to reproduce:
OS: Windows 10
installed packages: "react": "16.6.3", "react-native": "0.58.5", "react-native-interactable": "^0.1.10"