Closed hoangduong9112 closed 1 year ago
I found a solution for this issue. I use patch-package (https://www.npmjs.com/package/patch-package) to fix lib (react-native-month-year). In /node_modules/react-native-month-year-picker/android/build.gradle. remove line 115: classpath += files(project.getConfigurations().getByName('implementation').asList())
getting the same issue @gusparis https://github.com/gusparis/react-native-month-year-picker/pull/133
I have the same issue
Fixed on #140. Can you guys check?
` error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup. Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081 Note: /Users/dhd/InfraTech/MAStock/m-a-stock-mobile/node_modules/react-native-gradle-plugin/src/main/java/com/facebook/react/codegen/generator/SchemaJsonParser.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details.
FAILURE: Build failed with an exception.
Where: Build file '/Users/dhd/InfraTech/MAStock/m-a-stock-mobile/node_modules/react-native-month-year-picker/android/build.gradle' line: 115
What went wrong: A problem occurred configuring project ':react-native-month-year-picker'.
Try:
Get more help at https://help.gradle.org
BUILD FAILED in 22s
info Run CLI with --verbose flag for more details. `
I get this error when run on android with version 1.8.2