0

I'm publishing the ionic app but i cant build it. When gives this error

i try build project

ionic cordova build --release android

it gives this error

System cannot find the path specified
[ERROR] An error occurred while running subprocess cordova.
    cordova build android --release exited with exit code 1.
    Re-running this command with the --verbose flag may provide more information.

4 Answers 4

1

Ensure to add android platform to your ionic project

 -ionic cordova platform add android 
 - ionic cordova build android --prod --release
Sign up to request clarification or add additional context in comments.

Comments

0
  • Did you install Android Studio.
  • Did you do npm install cordova -g
  • Did you do npm install ionic -g

Also make sure you did all this: https://ionicframework.com/docs/installation/android

(Especially the correct SDK is essential)

Comments

0

Ensure that you have ran cordova prepare android it could be that the android platform is missing.

Comments

0

Its not an ionic error.It occurs when there isn't any setting of path in system variables.You have to follow this link. https://forum.ionicframework.com/t/how-do-i-setup-the-environment-to-work-with-ionic-and-cordova/117054/7

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.