cookies icon indicating copy to clipboard operation
cookies copied to clipboard

Could not get unknown property 'getJavaCompileProvider'

Open lyw1991 opened this issue 4 years ago • 1 comments

Bug report

Summary

An error occurred after I execute react-native link and react-native run-android

E:\project\xfapp-inspection>react-native run-android JS server already running. Building and installing the app on the device (cd android && gradlew.bat installDebug)...

FAILURE: Build failed with an exception.

  • Where: Build file 'E:\project\xfapp-inspection\node_modules@react-native-community\cookies\android\build.gradle' line: 122

  • What went wrong: A problem occurred configuring project ':@react-native-community_cookies'.

Could not get unknown property 'getJavaCompileProvider' for object of type com.android.build.gradle.internal.api.LibraryVariantImpl.

  • Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 3s Could not install the app on the device, read the error above for details. Make sure you have an Android emulator running or a device connected and have set up your Android development environment: https://facebook.github.io/react-native/docs/getting-started.html

Library version: 2.1.1

lyw1991 avatar Jun 28 '20 02:06 lyw1991

hi @lyw1991 could you try with the latest version of cookies?

safaiyeh avatar Aug 01 '20 02:08 safaiyeh