Buildflavour errors not able to run android app in MAC #48134
Labels
Needs: Author Feedback
Needs: Repro
This issue could be improved with a clear list of steps to reproduce the issue.
Newer Patch Available
Platform: Android
Android applications.
Type: Invalid
This issue does not belong here. Applying this label will cause issue to be closed.
Description
info React Native v0.76.3 is now available (your project is running on v0.74.3).
info Changelog: https://github.com/facebook/react-native/releases/tag/v0.76.3
info Diff: https://react-native-community.github.io/upgrade-helper/?from=0.74.3
info For more info, check out "https://reactnative.dev/docs/upgrading?os=macos".
info Dev server ready
i - run on iOS
a - run on Android
d - open Dev Menu
r - reload app
info Opening app on Android...
info A dev server is already running for this project on port 8081.
info Installing the app...
Starting a Gradle Daemon, 1 busy and 2 stopped Daemons could not be reused, use --status for details
Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
For more on this, please refer to https://docs.gradle.org/8.6/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
5 actionable tasks: 1 executed, 4 up-to-date
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:
Cannot locate tasks that match 'app:installDebug' as task 'installDebug' is ambiguous in project ':app'. Candidates are: 'installDevelopmentDebug', 'installDevelopmentDebugAndroidTest', 'installProductionDebug', 'installProductionDebugAndroidTest'.
Try:
BUILD FAILED in 14s
info Run CLI with --verbose flag for more details.
Steps to reproduce
racit@RACs-MacBook-Pro-2 app-facility-manager % yarn android
Internal Error: appFacilityManager@workspace:.: This package doesn't seem to be present in your lockfile; run "yarn install" to update the lockfile
at V0.getCandidates (/Users/racit/.yarn/releases/yarn-3.6.4.cjs:435:5145)
at kf.getCandidates (/Users/racit/.yarn/releases/yarn-3.6.4.cjs:391:1264)
at /Users/racit/.yarn/releases/yarn-3.6.4.cjs:439:8033
at df (/Users/racit/.yarn/releases/yarn-3.6.4.cjs:390:11070)
at ge (/Users/racit/.yarn/releases/yarn-3.6.4.cjs:439:8013)
at async Promise.allSettled (index 0)
at async io (/Users/racit/.yarn/releases/yarn-3.6.4.cjs:390:10398)
at async /Users/racit/.yarn/releases/yarn-3.6.4.cjs:439:8545
at async ti.startProgressPromise (/Users/racit/.yarn/releases/yarn-3.6.4.cjs:390:47651)
at async je.resolveEverything (/Users/racit/.yarn/releases/yarn-3.6.4.cjs:439:6573)
racit@RACs-MacBook-Pro-2 app-facility-manager %
React Native Version
0.74.3
Affected Platforms
Runtime - Android, Build - MacOS
Output of
npx react-native info
Stacktrace or Logs
Reproducer
facility App
Screenshots and Videos
racit@RACs-MacBook-Pro-2 app-facility-manager % npm start
info Welcome to React Native v0.74
info Starting dev server on port 8081...
info React Native v0.76.3 is now available (your project is running on v0.74.3).
info Changelog: https://github.com/facebook/react-native/releases/tag/v0.76.3
info Diff: https://react-native-community.github.io/upgrade-helper/?from=0.74.3
info For more info, check out "https://reactnative.dev/docs/upgrading?os=macos".
info Dev server ready
i - run on iOS
a - run on Android
d - open Dev Menu
r - reload app
info Opening app on Android...
info A dev server is already running for this project on port 8081.
info Installing the app...
Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
For more on this, please refer to https://docs.gradle.org/8.6/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
5 actionable tasks: 1 executed, 4 up-to-date
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:
Cannot locate tasks that match 'app:installDebug' as task 'installDebug' is ambiguous in project ':app'. Candidates are: 'installDevelopmentDebug', 'installDevelopmentDebugAndroidTest', 'installProductionDebug', 'installProductionDebugAndroidTest'.
Try:
BUILD FAILED in 4s
info Run CLI with --verbose flag for more details.
The text was updated successfully, but these errors were encountered: