Skip to content

tns run android throws an error if android platform is not added before that #774

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

Closed
valentinstoychev opened this issue Aug 12, 2015 · 1 comment
Assignees
Labels
Milestone

Comments

@valentinstoychev
Copy link

It give you an error message - c:\work\SideDrawerPlayGround\platforms\android\build.xml does not exist!.

The thing is that after that you can't add the android platform because it seems like the tns run android command is creating an android folder.

@dtopuzov dtopuzov added this to the 1.3.0 milestone Aug 12, 2015
rosen-vladimirov added a commit that referenced this issue Aug 13, 2015
When you execute `tns run <platform>`, but you have forgotten to add the platform before that, you go in inconsistent state. Make sure to add the platform for the user when one of the following is executed:
* `tns prepare <platform>`
* `tns build <platform>`
* `tns run <platform>`
* `tns update <platform>@<version>` - this will add the specified version in case you have not added the platform before that.
* `tns emulate <platform>`

This way we simplify the workflow, now you can just do:
1) `tns create app1`
2) `tns run android --path app1`
And the application will run on your attached device.

Resolves #774
Part of the implementation of: #475
@vchimev
Copy link

vchimev commented Sep 2, 2015

This issue is resolved as we "add platform on each platform related command" - #785.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants