-
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
Task 'installDebug' not found in project ':app' after upgrading to 0.71 #35838
Task 'installDebug' not found in project ':app' after upgrading to 0.71 #35838
Comments
Same problem after the upgrade to 0.71 |
seems that -variant doesn't work |
Same issue. |
I have a similar problem
|
Thanks for reporting this. This seems like a bug in the CLI not properly handling the The reproducer is:
android {
// ...
+ flavorDimensions "version"
+ productFlavors {
+ demo {
+ dimension "version"
+ applicationIdSuffix ".demo"
+ }
+ full {
+ dimension "version"
+ applicationIdSuffix ".full"
+ }
+ }
}
WorkaroundFor the time being you should be able to do the following: Folks on the CLI are looking into it. |
@quocluong2001 @RalissonMattias your issue seems slightly different. Are you using Microsoft's Codepush? If so this could be the issue (cc @kelset). |
@cortinico Thanks exactly I am using CodePush |
Ok then let's open an issue on https://github.com/microsoft/react-native-code-push/. |
lmk once the issue on react-native-code-push is open and I can also try to ping them internally |
Thanks for the workaround @cortinico. There is an open issue #2418 on codepush right now. |
Hi @raza-jamil-reckon we've switched from Please try this instead: ❯ yarn react-native run-android --mode=DevelopmentDebug --no-packager |
Hi @adamTrz, thanks for your help. Just tried with |
Super strange... |
I created a patch to fix it until @adamTrz 's fix is merged: Simply include it in |
Fix was merged and should be released in this week I hope 💪 |
Does 0.71.1 fix this? |
@tapz upgrade android cli |
yes, 0.71.1 fixes this. Please update to it and let us know if it works fine now |
@adamTrz Hi, thanks for the fix. I just tried on 0.71.1 and now running with How can I get some info out of it? Is there some verbose flag I can provide? Should I log this as a separate issue? |
Correct, you can use |
@adamTrz It's stuck writing the bundle output. If I check those directories I can see the files are there. |
Can you please try to:
and copy here the whole log @raza-jamil-reckon ? |
Hi @cortinico, thanks for looking into this. I've been trying to get to the bottom of this but it's truly bizarre. Running Here's the full output:
|
It's definitely something related to your local machine. Specifically your daemon are running out of memory. The I would suggest you increase the memory used by Gradle using the
You can use the configuration as suggested here: |
@cortinico Thanks, although I'm already using the recommended settings I think you're right. I'll do some digging on my end. |
thankyou @adamTrz --mode work for me <3 |
Delete the package lock file and then npm i --legacy-peer-deps cd android |
Description
Upgraded from 0.70.6 to 0.71 to fix this release issue but now I can't even run the app in debug on Android (iOS is all good).
Version
0.71
Output of
npx react-native info
System:
OS: macOS 12.5
CPU: (10) x64 Apple M1 Pro
Memory: 39.25 MB / 32.00 GB
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 16.17.0 - /var/folders/ln/nzcf4q192bs4zlkb4z874c7mfpqxjr/T/yarn--1673846933120-0.6159910237355888/node
Yarn: 1.22.10 - /var/folders/ln/nzcf4q192bs4zlkb4z874c7mfpqxjr/T/yarn--1673846933120-0.6159910237355888/yarn
npm: 8.15.0 - ~/.asdf/plugins/nodejs/shims/npm
Watchman: 2023.01.09.00 - /usr/local/bin/watchman
Managers:
CocoaPods: Not Found
SDKs:
iOS SDK:
Platforms: DriverKit 22.2, iOS 16.2, macOS 13.1, tvOS 16.1, watchOS 9.1
Android SDK: Not Found
IDEs:
Android Studio: 2021.3 AI-213.7172.25.2113.9123335
Xcode: 14.2/14C18 - /usr/bin/xcodebuild
Languages:
Java: 11.0.16.1 - /Users/raza.jamil/.asdf/shims/javac
npmPackages:
@react-native-community/cli: Not Found
react: 18.2.0 => 18.2.0
react-native: 0.71.0 => 0.71.0
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found
Steps to reproduce
yarn react-native run-android --variant=DevelopmentDebug --no-packager
Get the following error:
My Android env is setup correctly as everything was working pre-upgrade. Here's just to make sure my paths are all correct:
I know the build command is correct, here's the output of
./gradlew tasks
:If I run
./gradlew installDevelopmentDebug
manually it all works well but then the app doesn't work on startup. I'm not sure of that's becauserun-anrdoid
does some extra stuff or I've made a mistake. In any case, I'd like to run the app throughrun-android
locally.I've tried different combinations of gradle wrappers and
com.android.tools.build:gradle
but no luck. Any help would is appreciated.Snack, code example, screenshot, or link to a repository
It's just the
run-android
command.The text was updated successfully, but these errors were encountered: