Motion android-setup installs old version of NDK

#1

It seems that if I run motion android-setup with the current version, if installs an old version, which results in the API version error later, when I try to do rake device command. Here is what I am running:

motion android-setup
Updating SDK…
Refresh Sources:
Fetching https://dl.google.com/android/repository/addons_list-2.xml
.
.
.
Installing NDK : version r13b

motion --version
5.17

I am using starter package.

Thanks

#2

Here is the error, when running rake

ERROR! The Android NDK installed on your system does not support API level 28. Run 'motion android-setup' to install a more recent NDK version.
#3

What does ls /Library/RubyMotion/data/Android return?

#4

ls /Library/RubyMotion/data/Android
27

#5

When you run the android-setup command, a dialog window pops up that lets you select additional SDKs to install. From that dialog window, select sdk 27.

For your app, you can change the target sdk version in the Rakefile to 27 using app.sdk_target. All available options can be seen by executing rake config.