-
Notifications
You must be signed in to change notification settings - Fork 24.1k
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
Unrecognized command 'android' with react-native 0.31 #9312
Comments
can you run |
I depend on the Is there a away around this, or perhaps a different approach I should take for maintaining lots of little, unrelated react-native projects? |
@satya164 The |
subscribing. |
My current work-around is to have a const fs = require('fs');
const generate = require('react-native/local-cli/generate/generate.js');
generate([
'--platform', 'android',
'--project-path', process.cwd(),
'--project-name', JSON.parse(
fs.readFileSync('package.json', 'utf8')
).name,
]); Then you can just:
This has the exact same effect as:
|
But what about |
I have this issue as well. I have run
|
Summary: Fixes #9312 (Sorry for inconvenience, could've been removed by mistake!) Bonus: projectName can be configured rather than always defaulting to package.json name, not sure if helpful, but just added it since we have a `default` function that makes sense in this case. Closes #9525 Differential Revision: D3753610 Pulled By: bestander fbshipit-source-id: 641872855b9865502f4055910262686edc4b504e
This should be reopened as this still happens on the latest version. |
@Flavien With latest of RN |
I still get the Android project not found error after running react-native upgrade, and it still suggests running a non-existent command. This should be reopened. |
@cogwheel any fix for adding android/ios folders to an RN project? |
@SupriyaKalghatgi Thanks for your update. |
This should be definitely re-opened as it causes the same error. |
OK. My Problem got fixed by enabling Virtual Device from BIOS in Windows 10 and ran the emulator in Background (I am novice to Android)! But still, why it didn't run in my connected Android device directly ? |
thanks @SupriyaKalghatgi |
Whats the final answer ? me too am stuck |
@huxaiphaer |
The text was updated successfully, but these errors were encountered: