I'm working on an Ionic project and use Cmdr as command line tool.
Everything is working fine during development, but when I wanted to build and run for android, it fails with this error:
Error: Please install Android target: "android-23".
Hint: Open the SDK manager by running: "C:\Users\s.fave\AppData\Local\Android\sdk\tools\android.bat"
You will require:
1. "SDK Platform" for android-23
2. "Android SDK Platform-tools (latest)
3. "Android SDK Build-tools" (latest)
But everything is correctly installed, and thanks to this answer, I tryed with the native Windows cmd and it worked like a charm!
When I run (in Cmdr) android
to launch the SDK manager, it says there is No suitable Java found
, but echo %PATH%
and echo %JAVA_HOME%
prints the correct values with Java path.
I suspect a path issue with Cmdr, but I can't figure it out :(
Is there a specific configuration of Cmdr needed to be able to use ionic build/run
commands?