Cordova / Ionic build error (sometimes): don't have required environment

前端 未结 3 1257

I have just started dabbling in Cordova / Ionic to make Android / iOS apps with HTML5 / js, and so far I have gotten sample / tutorial apps to work sometimes, but not every

3条回答
  •  无人及你
    2020-12-06 18:35

    I have solved this problem by having the correct version of the build tools too (not only the SDK platform).

    If ionic sets the platform target to android-21 (see console log when adding the platform), install the build tools 21.x.x also.

提交回复
热议问题