Hi,
I followed all Installation steps but when I try to build the app for Android I get the following error.
React native version 0.58.4
React Navigation Version ^3.1.5
Where:
Build file '/Library/WebServer/Documents/offf-app/node_modules/react-native-screens/android/build.gradle' line: 103
What went wrong:
A problem occurred configuring project ':react-native-screens'.
Could not get unknown property 'javaCompileProvider' for object of type com.android.build.gradle.internal.api.LibraryVariantImpl.
I'm having the same issue. I temporarily fixed it with this:
https://github.com/kmagiera/react-native-reanimated/issues/315#issuecomment-503916860
What version of gradle and the android build plugin are you using?
From my build.gradle file:
buildToolsVersion = "28.0.2"
classpath 'com.android.tools.build:gradle:3.2.1'
gradleVersion = '4.7'
According to the PR that created this change you need Gradle 4.10+. So if you update it should work again. You need to update the version of the gradle plugin to 3.3.2 as well. I'm not sure but I do think you could even update to Gradle 5.x and build plugin 3.4+.
It looks like the issue is outdated, so I am closing it then. Feel free to comment if I am wrong.
you are wrong,any issue can never be outdated, there are unnumerable beginners coming to dev world
Most helpful comment
you are wrong,any issue can never be outdated, there are unnumerable beginners coming to dev world