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

ERROR! Cannot install an app built for API version 22 on a device running API version 19 #63

Open
pickhardt opened this issue Jul 26, 2015 · 2 comments

Comments

@pickhardt
Copy link

I'm getting the following error when I try to run these examples on my Android: ERROR! Cannot install an app built for API version 22 on a device running API version 19

Where in the project files does it specify version 22, and can I just change that to 19? According to this Wikipedia chart, maybe only 1% of phones are on version 22 currently anyway https://en.wikipedia.org/wiki/Android_version_history

@pickhardt
Copy link
Author

So I figured out the problem. RubyMotion was trying to compile it to the most recent Android version, which isn't really popular or used by my phone.

The solution was to add these to the Rakefile:

    app.target_api_version = "15"
    app.api_version = "15"

Honestly, you guys should probably add these to the Rakefiles in these examples, otherwise new users are going to get confused.

@meissadia
Copy link

Thank you @pickhardt!

iOS:

app.deployment_target = '9.3'

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

2 participants