Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70612

Error building android. -Please install Android target: "android-22"

$
0
0

@niratnayake wrote:

I have been trying to test my app for few days now without any luck. I read through many similar topics but couldn't resolve the issue. Can anyone please help me with the issue.

[Error: Please install Android target: "android-22".

Hint: Open the SDK manager by running: D:\Android\android-sdk\tools\android.BAT
You will require:
1. "SDK Platform" for android-22
2. "Android SDK Platform-tools (latest)
3. "Android SDK Build-tools" (latest)]
ERROR building one of the platforms: Error: cmd: Command failed with exit code 2

You may not have the required environment or OS to build this project
Error: cmd: Command failed with exit code 2
at ChildProcess.whenDone (C:\Users\Indika\AppData\Roaming\npm\node_modules\c
ordova\node_modules\cordova-lib\src\cordova\superspawn.js:131:23)
at ChildProcess.emit (events.js:110:17)
at maybeClose (child_process.js:1015:16)
at Process.ChildProcess.handle.onexit (childprocess.js:1087:5)

I have set my android_home variables.

And other variables in the path
%ANDROID_HOME%\platform-tools;%ANDROID_HOME%\tools

I have installed API 22 using the SDK manager.

Platforms installed in the 'Platforms' folder

Apart from that I am using the Apache Cordova file plugin in my app. (Not sure if this has anything to do with the error).

I would really appreciate your help.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70612

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>