React-native-screens: [Android] Could not get unknown property 'javaCompileProvider' for object of type

Created on 9 Jul 2019  路  6Comments  路  Source: software-mansion/react-native-screens

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.

Most helpful comment

you are wrong,any issue can never be outdated, there are unnumerable beginners coming to dev world

All 6 comments

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

thorbenandresen picture thorbenandresen  路  4Comments

bartzy picture bartzy  路  3Comments

chengsokdara picture chengsokdara  路  3Comments

Kinark picture Kinark  路  4Comments

jeveloper picture jeveloper  路  5Comments