gusparis / react-native-month-year-picker

React Native Month Picker component for iOS & Android
MIT License
107 stars 75 forks source link

Could not resolve com.facebook.react:react-native:+ #134

Closed edosetia closed 1 year ago

edosetia commented 1 year ago

Hi! 👋

Firstly, thanks for your work on this project! 🙂

Today I used patch-package to patch react-native-month-year-picker@1.8.2 for the project I'm working on.

Here is the diff that solved my problem:

diff --git a/node_modules/react-native-month-year-picker/android/build.gradle b/node_modules/react-native-month-year-picker/android/build.gradle
index 2455914..c57cbf0 100644
--- a/node_modules/react-native-month-year-picker/android/build.gradle
+++ b/node_modules/react-native-month-year-picker/android/build.gradle
@@ -112,7 +112,6 @@ afterEvaluate { project ->
         source = android.sourceSets.main.java.srcDirs
         classpath += files(android.bootClasspath)
         project.getConfigurations().getByName('implementation').setCanBeResolved(true)
-        classpath += files(project.getConfigurations().getByName('implementation').asList())

         include '**/*.java'
     }

This issue body was partially generated by patch-package.

onnij commented 1 year ago

I think the actual root cause is probably because of this:

https://github.com/facebook/react-native/issues/35210

gusparis commented 1 year ago

Fixed on #140. Can you guys check?