gusparis / react-native-month-year-picker

React Native Month Picker component for iOS & Android
MIT License
105 stars 72 forks source link

Issue on Android with version 1.8.2 #132

Closed hoangduong9112 closed 1 year ago

hoangduong9112 commented 1 year ago

` 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.

BUILD FAILED in 22s

at makeError (/Users/dhd/InfraTech/MAStock/m-a-stock-mobile/node_modules/execa/index.js:174:9)
at /Users/dhd/InfraTech/MAStock/m-a-stock-mobile/node_modules/execa/index.js:278:16
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async runOnAllDevices (/Users/dhd/InfraTech/MAStock/m-a-stock-mobile/node_modules/react-native/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/runOnAllDevices.js:109:5)
at async Command.handleAction (/Users/dhd/InfraTech/MAStock/m-a-stock-mobile/node_modules/@react-native-community/cli/build/index.js:192:9)

info Run CLI with --verbose flag for more details. `

I get this error when run on android with version 1.8.2

hoangduong9112 commented 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())

jeffreynerona commented 1 year ago

getting the same issue @gusparis https://github.com/gusparis/react-native-month-year-picker/pull/133

iamaralinvestplay commented 1 year ago

I have the same issue

gusparis commented 1 year ago

Fixed on #140. Can you guys check?