Hi, I just spent >1 hours debugging why cargo apk run tells me "Error: Android SDK has no platforms installed.", even though I had a platform installed.
Finally I found out that this is because of the final filter in the code of ndk.rs:
My platform version was simply outside of the range min_platform_level..=max_platform_level. So the problem was not that it has "no platforms installed", but that the installed platform version is incompatible.
Would it be possible to adjust the error message? If you wish, I can make a PR.
P.S. i see that this tool is deprecated. feel free to close the PR without any action then
Hi, I just spent >1 hours debugging why
cargo apk run
tells me "Error: Android SDK has no platforms installed.", even though I had a platform installed.Finally I found out that this is because of the final filter in the code of
ndk.rs
:My platform version was simply outside of the range
min_platform_level..=max_platform_level
. So the problem was not that it has "no platforms installed", but that the installed platform version is incompatible.Would it be possible to adjust the error message? If you wish, I can make a PR.
P.S. i see that this tool is deprecated. feel free to close the PR without any action then