question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

compatibility with react-native 0.62

See original GitHub issue

Bug Report

Before opening

  • Did you try the latest release?
  • Did you look for existing issues?

Ad Modules

yes

Platforms

yes

Versions

  • Android:
  • iOS:
  • react-native-fbads: latest
  • react-native: 0.62

Ads Environment

  • Facebook app installed:
  • Happens in test (dev build + device is marked as a test device): yes
  • Happens in production (release build + not a test device):
  • Facebook review status: [not submitted | approved]

Current Behaviour

after upgrading to react-native 0.62 I cant build android. Double checked everything and it seems correct. Could the auto linking files have changed?

Could not resolve all task dependencies for configuration ':app:debugRuntimeClasspath'.
   > Could not resolve project :react-native-fbads.
     Required by:
         project :app
      > Unable to find a matching configuration of project :react-native-fbads:
          - None of the consumable configurations have attributes.

Expected Behaviour

should build android

Steps to Reproduce

If you install the library on a fresh react-native 0.62 project it wont build (confirmed) Additionals

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:26 (1 by maintainers)

github_iconTop GitHub Comments

14reactions
hussainarthunacommented, May 12, 2020

No idea at all why, but changing the order and adding a / in the end of the path in settings.gradle seems to work for me.


apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings)

include ':app'



include ':react-native-fbads'

project(':react-native-fbads').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-fbads/android/app/')





I confirm as it is working perfectly now. Thank you so much.

5reactions
Jhontecommented, May 12, 2020

No idea at all why, but changing the order and adding a / in the end of the path in settings.gradle seems to work for me.

apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings)
include ':app'

include ':react-native-fbads'
project(':react-native-fbads').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-fbads/android/app/')


Read more comments on GitHub >

github_iconTop Results From Across the Web

Upgrade to React Native 0.62 - Matt Oakes
React Native now supports the latest version of the React DevTools. You can read more about this on the React blog post and...
Read more >
Announcing React Native 0.62 with Flipper
Today we're releasing React Native version 0.62 which includes support for Flipper by default.
Read more >
How to make your React Native 0.62 project compatible with ...
This guide is for the React Native developers that needs to work on a lower version React Native project (0.62 specifically).
Read more >
Upgrading React Native from 0.61.5 to 0.62.3 - Medium
You must check every library in use and ensure they do not report any compatibility issue with the targeted version. With that said,...
Read more >
React Native Support - Flipper
Integration between React Native and Flipper is enabled out of the box in React Native version 0.62 and higher. For the setup instructions...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found