Skip to content
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

cordova:open --platform android seem to expect a .project file that isn't generated by cordova. #171

Closed
kitsunde opened this issue Oct 16, 2016 · 4 comments

Comments

@kitsunde
Copy link
Contributor

The culprit seems to be this:

https://github.com/isleofcode/ember-cordova/blob/656daed5b0d877e1354b94fb7dd29ee05005690c/lib/tasks/open-app.js#L26

It's not created by cordova:prepare or cordova:build --platform android. My best guess is that it's an Eclipse specific file https://github.com/github/gitignore/blob/master/Global/Eclipse.gitignore#L15

@KirillSuhodolov
Copy link

KirillSuhodolov commented Nov 8, 2016

@kitsunde same issue. @alexblom can you please check?

@alexblom
Copy link
Member

This is definitely an error / broken IDE assumption. Until it is fixed, your best solution is to either pop open the IDE manually, or run ember cdv run --platform=android --device

@shaunc
Copy link

shaunc commented Mar 14, 2017

Perhaps silly newbie question: how does one "pop open IDE manually"? In Android studio it wants me to create new, open or import, so I imported [root-project]/ember-cordova/cordova/platforms/android ... which seems to work. However, when I try to run, it opens "select deployment target" dialog, claiming the APK supports only ", all, armeabi-v7a" not x86 -- yet I see that cdv:build did build ...build/outputs/apk/android-x86-debug.apk. Can you explain where Android studio is getting the path to the APK among the confusing plethora of configuration files? :)

EDIT Ok -- I found the "build variants" tab in the IDE, which seemed to work, though I worry that changing configuration with the IDE will cause the ember-cordova command line tools to stop working (IDE wanted me to upgrade gradle, which did cause problems so had to start over... also I had to downgrade the studio installed sdk to android-tools-25.2.3 to get "tools/templates"... ). However emulator still fails; starting from command-line using just cordova ("cordova run") show that I am hitting https://www.virtualbox.org/ticket/14294 since I have docker installed. I realize this is all 3rd-party compatibility issues, but I do wish the documentation would explain issues up-front as it claims to do. Now looking for a good workaround as docker is part of my dev environment....

@alexblom
Copy link
Member

This was finally rectified in 0.4.8.

@shaunc Re: issues, happy to take documentation issues - we kind of assume Android env setup outside of this project but are discussing ways to make that easier now we have a stable cli. Have you worked through the Cordova Env setup guides? https://cordova.apache.org/docs/en/latest/guide/platforms/android/index.html

I'm closing this issue as it resolves the named concern, feel free to create one if something else comes up.

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

No branches or pull requests

4 participants