Task :react-native-firebase_app:packageDebugResources FAILED #8247
Santosh-NPL
started this conversation in
General
Replies: 1 comment
-
As mentioned when you posted this as a comment elsewhere, I do not reproduce. https://github.com/mikehardy/rnfbdemo/blob/main/make-demo.sh Builds correctly and is a shareable, minimum viable reproduction of react-native-firebase builds with the same versions you are using I think. You will need to post a minimal viable reproduction of it not working for any investigation to happen - but it will likely be project-specific. My guess is the exercise of creating a reproduction, starting with just react-native and react-native-firebase may illuminate the problem? Ideally it does, then you're unblocked. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
PS D:\projectFiles\Barber> npm start -- --reset-cache --info --stacktrace --scan --debug
(node:6220) [DEP0040] DeprecationWarning: The
punycode
module is deprecated. Please use a userland alternative instead.(Use
node --trace-deprecation ...
to show where the warning was created)info Welcome to React Native v0.76
info Starting dev server on port 8081...
info Dev server ready
i - run on iOS
a - run on Android
r - reload app
d - open Dev Menu
j - open DevTools
info Opening app on Android...
info A dev server is already running for this project on port 8081.
info Installing the app...
info 💡 Tip: Make sure that you have set up your development environment correctly, by running npx react-native doctor. To read more about doctor command visit: https://github.com/react-native-community/cli/blob/main/packages/cli-doctor/README.md#doctor
FAILURE: Build failed with an exception.
What went wrong:
A problem was found with the configuration of task ':react-native-firebase_app:packageDebugResources' (type 'MergeResources').
Gradle detected a problem with the following location: 'D:\projectFiles\Barber\node_modules@react-native-firebase\app\android\build\generated\res\resValues\debug'.
Reason: Task ':react-native-firebase_app:packageDebugResources' uses this output of task ':@react-native-firebase_app:generateDebugResValues' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed.
Possible solutions:
For more information, please refer to https://docs.gradle.org/8.10.2/userguide/validation_problems.html#implicit_dependency in the Gradle documentation.
Try:
BUILD FAILED in 17m 53s
info Run CLI with --verbose flag for more details.
package.json
android/build.gradle
##android/app/build.gradle
and add in android/app/google-services.json
# npx react-native doctor
D:\projectFiles\Barber> npx react-native doctor
⠋ Running diagnostics...(node:8796) [DEP0040] DeprecationWarning: The
punycode
module is deprecated. Please use a userland alternative instead.(Use
node --trace-deprecation ...
to show where the warning was created)⠹ Running diagnostics...* daemon not running; starting now at tcp:5037
Common
✓ Node.js - Required to execute JavaScript code
✓ npm - Required to install NPM dependencies
● Metro - Metro Bundler is not running
Android
✓ Adb - Required to verify if the android device is attached correctly
✓ JDK - Required to compile Java code
✓ Android Studio - Required for building and installing your app on Android
✓ ANDROID_HOME - Environment variable that points to your Android SDK installation
✓ Gradlew - Build tool required for Android builds
✓ Android SDK - Required for building and installing your app on Android
Errors: 0
Warnings: 1
Usage
› Press f to try to fix issues.
› Press e to try to fix errors.
› Press w to try to fix warnings.
› Press Enter to exit.
getting an error why??
Beta Was this translation helpful? Give feedback.
All reactions