launchdarkly / react-native-client-sdk

LaunchDarkly Client-side SDK for React Native
Other
47 stars 32 forks source link

I can't build React Native Android app after installing LaunchDarkly SDK #174

Closed akkadaya closed 1 year ago

akkadaya commented 1 year ago

Describe the bug I can't build React Native Android app after installing LaunchDarkly SDK

To reproduce Run

npx react-native run-android

Expected behavior Build Android app successfully

Logs

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':launchdarkly-react-native-client-sdk:compileDebugAidl'.
> Could not resolve all task dependencies for configuration ':launchdarkly-react-native-client-sdk:debugCompileClasspath'.
   > Could not find any matches for com.facebook.react:react-native:0.70.+ as no versions of com.facebook.react:react-native are available.
     Required by:
         project :launchdarkly-react-native-client-sdk

SDK version the latest

    "launchdarkly-react-native-client-sdk": "^6.3.0",

Language version, developer tools

OS/platform MacOS 13.2

akkadaya commented 1 year ago

I had custom configurations in build.gradle which was affecting the com.facebook.react:react-native dependency

Will close the issue

TheAlmightyBob commented 1 year ago

@akkadaya Can you share what custom configuration was the problem? I'm seeing this same error

menttys commented 1 year ago

@akkadaya @TheAlmightyBob what was the build.gradle configurations affecting it? Thanks!

NazarKuryl0 commented 10 months ago

@akkadaya Can you share what custom configuration was the problem? I'm seeing this same error. Is this error related to next part in build.gradle?

exclusiveContent {
          filter {
              includeGroup "com.facebook.react"
          }
          forRepository {
              maven {
                  url "$rootDir/../node_modules/react-native/android"
              }
          }
      }

If yes, what could be done, if i need to keep that part of code in build.gradle?