سلام دوستان
من برای ایجاد یک برنامه hybrid موبایل با استفاده از کتابخانه ionic دستورات زیر رو اجرا کردم
ولی در هنگام build کردن برنامه با خطای زیر مواجه شدم
لطفا اگه اطلاعاتی در این مورد دارید و میتونید کمکم کنی ممنونتون می شم.
من تا این مرحله رو بخوبی پیش رفتم
ionic start firtApp
cd firtApp
ionic platform add android
ولی در آخر با اجرای دستور زیر با خطا مواجه شدم
ionic build android
BUILD FAILED
D:\New folder\android-sdk-final\android-sdk-fully\sdk\tools\ant\build.xml:601: T
he following error occurred while executing this line:
D:\New folder\android-sdk-final\android-sdk-fully\sdk\tools\ant\build.xml:542: U
nable to resolve project target 'android-21'
Total time: 1 second
C:\Users\Mohammad\firstapp\platforms\android\cordo va\node_modules\q\q.js:126
throw e;
^
Error code 1 for command: cmd with args: /s /c "ant debug -f C:\Users\Mohammad\f
irstapp\platforms\android\build.xml -Dout.dir=ant-build -Dgen.absolute.dir=ant-g
en"
ERROR building one of the platforms: Error: C:\Users\Mohammad\firstapp\platforms
\android\cordova\build.bat: Command failed with exit code 8
You may not have the required environment or OS to build this project
Error: C:\Users\Mohammad\firstapp\platforms\android\cordo va\build.bat: Command f
ailed with exit code 8
at ChildProcess.whenDone (C:\Users\Mohammad\AppData\Roaming\npm\node_module s
\cordova\node_modules\cordova-lib\src\cordova\superspawn.js:131:23)
at ChildProcess.emit (events.js:98:17)
at maybeClose (child_process.js:756:16)
at Process.ChildProcess._handle.onexit (child_process.js:823:5)