-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
Error with GeneratePackageListTask when build for Android #46069
Comments
|
|
I am also facing the same issue FAILURE: Build failed with an exception.
|
meet same error after update 0.75.1
|
Same thing happening to me, I tried downgrading among other things in order to try to resolve the issue, didn't help, only new things break :) |
I'm happy to help debug/fix this but without steps on how to reproduce it's literally impossible |
Maybe @1500256797 can share his repo, since from the posted error it seems it is just a camera demo app and then @cortinico you can have a look? I'm not allowed to share my app code. |
I am getting the same |
Got this today as well:
When I opened Android Studio I got the same minimum supported version and updating through the GUI just made the same change to the gradle-wrapper with the same effect. |
1、here is repo demo https://github.com/ZhenQian-keystone/rn_74_camera_demo 2、 Reproduction steps:
|
I am also encountering this.
This is my error:
Any solutions? |
Same issue with 0.74.5 It wouldn't even go this far using or else was getting this error
|
It seems to be the same issue. Has anyone try this solution? |
Same error.
|
I solved this issue with the following command: Seems like yarn links the new version of rn-cli but doesnt give permission to execute. After I executed the command above the issues were gone. |
Hey @1500256797, The problem you're having is in the Specifically you need to change it as follows: rootProject.name = 'rn_74_camera_demo'
+pluginManagement { includeBuild("../node_modules/@react-native/gradle-plugin") }
+plugins { id("com.facebook.react.settings") }
+extensions.configure(com.facebook.react.ReactSettingsExtension){ ex -> ex.autolinkLibrariesFromCommand() }
- apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings)
include ':app'
includeBuild('../node_modules/@react-native/gradle-plugin')
apply from: new File(["node", "--print", "require.resolve('expo/package.json')"].execute(null, rootDir).text.trim(), "../scripts/autolinking.gradle")
useExpoModules() This is clearly stated in the upgrade-helper here: I suspect most of the other build failures you folks are having are similar issues (you haven't properly followed the upgrade helper). I'll close here as reproducer by @R1KO was never provided. Please open separate issues + provide repros and we can look into what failed your upgrade. |
It seems like that user is also having issues with rn 0.74.5, why mention the upgrade helper for rn 75 ? |
RN 0.75.1 |
I'm having the same problem with "react-native 0.74.3" I have followed the below steps and able to build application successfully. Step-1 Update package.json file for "react-native": "0.74.3" to "react-native": "0.74.4" Step-2 Update the distributionUrl inside the gradle-wrapper.properties file Step-3 Add autolinkLibrariesWithApp() within the app/build.gradle file. Step-4 Remove below lines from app/build.gradle file. Step-5 Remove below line from settings.gradle file. Step-6 Add below lines above the rootProject.name property. rootProject.name = 'ProjectName' Step-7 Delete the .build, .gradle folder from android Step-8 Remove node_modules, yarn.lock file and run yarn android command to build the application Thanks!! |
U saved me, i love u so much <3 |
Thank you so much, it worked !
Did you change anything to your package.json to still be able to run it this way ? I have to run it this way now |
This worked for me! Thanks bud. |
You just have to install the node modules dependancy again as we updated the version for react-native inside the package.json file. |
You absolute lege
You Absolute Legend, I was stuck on it for 18 hours. You will be in my stories!!! |
Same Issue. Please reopen this one. |
This should not be closed. Still very much an issue. Unable to solve myself. |
Thank you so much man!!! 💦 |
I can confirm this change also worked in react-native version |
This worked for me ❤️❤️❤️ |
Thank you! @NidhiBhansali1923 |
Issue with
Steps I Took to Resolve the Issue: It turns out I had missed a few key guidelines during the upgrade. Here's what I did to fix the issue: Added missing configuration: Specifically, I updated my settings.gradle file as per the guide. The necessary changes were related to autolinking libraries from the command. Added in
Removed from
After applying these changes, the error was resolved, and autolinking worked correctly again. |
bro you are a legend, you solved my issue with builds ! |
You must be the superhero🦸 saving hundreds of people struggling with these sticky dependencies. 😄 |
Please follow https://react-native-community.github.io/upgrade-helper/?from=0.74.2&to=0.75.4&package=buy.me.coffee&name=yourAppName this Will resolve the Issue |
Hello everyone, I faced the same issue when I upgraded to React Native 0.76.2 and Expo SDK 52. What worked for me was:
This recreated the android folder with all the necessary updates, and everything worked perfectly afterward! |
Facing same issue
I followed every steps required for upgrading from react native |
Same thing happening to me |
hey for some reason it is not working in a pipline enviornment while it builds on local , any idea why |
For anyone wondering, I solved this issue on my pipeline by using a newer version of node. |
I'm facing the same error on the Bitrise pipeline while using React Native version 0.75.2. |
Thanks man, worked for me ! |
I encountered an issue with the Bitrise pipeline that was resolved by creating a directory during the pipeline process. To verify if autolinking occurred, I used the npx react-native config command, which confirmed that the autolinking was functioning correctly. However, the problem arose because the required file wasn't being created at the specified path. I resolved this by granting the necessary permissions on the pipeline to allow the directory to be created at that path. Thanks. |
I was also facing the issue while using version 0.76.5 and i have solved the issue. All i need to do is:
After that, just run |
Description
A problem was found with the configuration of task ':app:generateAutolinkingPackageList' (type 'GeneratePackageListTask').
Steps to reproduce
I tried to create this file with content
{}
but it doesn't work too.React Native Version
0.75.1
Affected Platforms
Runtime - Android
Output of
npx react-native info
Stacktrace or Logs
Reproducer
https://github.com/R1KO
Screenshots and Videos
No response
The text was updated successfully, but these errors were encountered: