launchdarkly/react-native-client-sdk

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

akkadaya opened this issue · 4 comments

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

  • React Native 0.70.6
  • TypeScript

OS/platform
MacOS 13.2

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

Will close the issue

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

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