sedar
December 14, 2017, 1:11pm
1
D:\Uat\offline\spine>ionic cordova platform add android
cordova platform add android --save
Using cordova-fetch for cordova-android@5.2.1
Error: Failed to fetch platform cordova-android@5.2.1
Probably this is either a connection problem, or platform spec is incorrect.
Check your connection and platform name/version/URL.
Error: cmd: Command failed with exit code 1 Error output:
The filename, directory name, or volume label syntax is incorrect.
The filename, directory name, or volume label syntax is incorrect.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.3 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“win32”,“arch”:“x64”})
[ERROR] Exception:
Hi @sedar
Could you print your ionic info
here
Thanks
sedar
December 14, 2017, 2:02pm
3
@ionic/cli-utils : 1.18.0
ionic (Ionic CLI) : 3.18.0
global packages:
cordova (Cordova CLI) : 7.1.0
local packages:
@ionic/app-scripts : 3.1.2
Cordova Platforms : none
Ionic Framework : ionic-angular 3.9.2
System:
Node : v8.9.0
npm : 5.5.1
OS : Windows 10
Environment Variables:
ANDROID_HOME : C:\Program Files\Android1\Android Studio\bin
Misc:
backend : pro
Do the following:
ionic cordova platform remove android
Then add 6.1.2 specifically
ionic cordova platform add android@6.1.2
Also found the following as an temporary workaround
ionic cordova platform add android --nofetch
sedar
December 14, 2017, 2:20pm
5
while running ionic cordova platform remove android this error coming ---->
D:\Uat\offline\spine>ionic cordova platform remove android
cordova platform remove android --save
Removing platform android from config.xml file…
Error: cmd: Command failed with exit code 1 Error output:
The filename, directory name, or volume label syntax is incorrect.
The filename, directory name, or volume label syntax is incorrect.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.3 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“win32”,“arch”:“x64”})
[ERROR] An error occurred while running cordova platform remove android --save (exit code 1).
Sujan12
December 14, 2017, 5:04pm
6
Run the same command with --verbose
added at the end please.
sedar
December 16, 2017, 6:47am
7
[DEBUG] Reason for not using local CLI: LOCAL_CLI_NOT_FOUND
[DEBUG] CLI flags: { interactive: true, confirm: false }
[DEBUG] { cwd: ‘D:\Uat\offline\spine’, local: false, binPath:
‘C:\Users\Sahil\AppData\Roaming\npm\node_modules\ionic\bin\ionic’, libPath:
‘C:\Users\Sahil\AppData\Roaming\npm\node_modules\ionic\dist\index.js’ }
cordova platform remove android --save
Removing platform android from config.xml file…
Error: cmd: Command failed with exit code 1 Error output:
The filename, directory name, or volume label syntax is incorrect.
The filename, directory name, or volume label syntax is incorrect.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.3 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“win32”,“arch”:“x64”})
[ERROR] An error occurred while running cordova platform remove android --save (exit code 1)
sedar
December 16, 2017, 8:21am
8
I down graded the CLI version , and then remove cordova and added again Now the apk is builiding …
but in the it is showing error after builiding apk .
BUILD SUCCESSFUL
Total time: 9.675 secs
Error: cmd: Command failed with exit code 1 Error output:
The filename, directory name, or volume label syntax is incorrect.
[ERROR] An error occurred while running cordova build android (exit code 1).