Error adding android platform in Cordova

Asked

Viewed 485 times

0

I’m trying to create a project with Cordova.

I already have everything installed, npm, Cordova sdk android and etc..

When I create a project in the directories of my pc, everything works normally.

cordova create teste br.com.anderson Teste
cordova platform add android
cordova run android

But when I try to run it inside a network drive mapped this error when adding the platform:

U:\app1.0\app>cordova platform add android
Adding android project...
Creating Cordova project for the Android platform:
        Path: platforms\android
        Package: br.com.anderson
        Name: Anderson
        Activity: MainActivity
        Android target: android-22
Copying template files...
cp: copyFileSync: could not write to dest file (code=ENOENT):platforms\android\.gitignore

Error: cmd: Command failed with exit code 1
    at ChildProcess.whenDone (C:\Users\Anderson\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\cordova\superspawn.js:139:23)
    at ChildProcess.emit (events.js:98:17)
    at maybeClose (child_process.js:766:16)
    at Process.ChildProcess._handle.onexit (child_process.js:833:5)

Someone’s had that problem before?

2 answers

0

I did a quick search and found a similar post Link pro post, pointed out that the problem may be only with the firewall, try to check it there.

I hope I could have helped with something.

Hug

  • No, thanks for trying to help.

0


Try to check if in samba configuration the file .gitignore is not vetoed.

  • Thank you so much! That solved my problem!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.