./gradlew Assemblerelease Build Failing When Updated To React Native 59.8 & Gradle To 5.1
Before updating react-native to 59.8 and gradle to 5.1, I can take build using ./gradlew assembleRelease. When I updated react native to 59.8 and gradle to 5.1, I got following e
Solution 1:
I had the same error. I just replaced ./gradlew assembleRelease
to ./gradlew app:assembleRelease
. You should try.
EDIT: There's another way. After some research, I found this code subprojects { subproject -> afterEvaluate{ if((subproject.plugins.hasPlugin('android') || subproject.plugins.hasPlugin('android-library'))) { android { compileSdkVersion rootProject.ext.compileSdkVersion buildToolsVersion rootProject.ext.buildToolsVersion } } } }
Put it before EXT In android/gladle. And you'll be able to keep ./gradlew assembleRelease
The problem was conflict with buildtools from dependencies vs buildtools from android project
Post a Comment for "./gradlew Assemblerelease Build Failing When Updated To React Native 59.8 & Gradle To 5.1"