-
Notifications
You must be signed in to change notification settings - Fork 24.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RN v0.76.0 | Issue with autolinking packages with Brownfield project #47406
Labels
API: Linking
Newer Patch Available
Resolution: Answered
When the issue is resolved with a simple answer
Comments
|
|
Tried with RN updated version(0.76.1) still has a same issue. |
cortinico
changed the title
RN v0.76.0 | Issue with autolinking packages
RN v0.76.0 | Issue with autolinking packages with Brownfield project
Nov 5, 2024
You can solve this by changing your pluginManagement {
repositories {
google {
content {
includeGroupByRegex("com\\.android.*")
includeGroupByRegex("com\\.google.*")
includeGroupByRegex("androidx.*")
}
}
mavenCentral()
gradlePluginPortal()
}
includeBuild("../reactnative/node_modules/@react-native/gradle-plugin")
}
plugins { id("com.facebook.react.settings") }
extensions.configure<com.facebook.react.ReactSettingsExtension> {
- autolinkLibrariesFromCommand()
+ autolinkLibrariesFromCommand(workingDirectory = file("../ReactNative"))
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositoriesMode.set(RepositoriesMode.PREFER_SETTINGS)
repositories {
google()
jcenter()
mavenLocal()
mavenCentral()
}
}
rootProject.name = "Android"
include(":app")
includeBuild("../reactnative/node_modules/@react-native/gradle-plugin")
- apply(from = "../reactnative/node_modules/@react-native-community/cli-platform-android/native_modules.gradle") The reason behind those changes are:
|
cortinico
added
the
Resolution: Answered
When the issue is resolved with a simple answer
label
Nov 5, 2024
Working fine after the changes. |
5 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
API: Linking
Newer Patch Available
Resolution: Answered
When the issue is resolved with a simple answer
Description
I have upgraded the RN version of my project to latest(v0.76.0).
After the upgrade the autolinklibraries not linking any packages.
For Sample i have just added one library react-native-vision camera but the nativemodules are coming as null after upgrade when i consoled the packages list from getpackges it consist of only the single ReactNativemainpackage.
Steps to reproduce
This is the brownfield app.
Git clone the repo: https://github.com/sandeep36butte/RNBrownFeldApp
yarn start and run on android
React Native Version
0.76.0
Affected Platforms
Runtime - Android
Output of
npx react-native info
Stacktrace or Logs
Reproducer
https://github.com/sandeep36butte/RNBrownFeldApp
Screenshots and Videos
No response
The text was updated successfully, but these errors were encountered: