Error adding android platform in the cordova

0

I'm trying to create a project with the cordova.

I already have everything installed, npm, android sdk cord 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 this within a mapped network drive of this error at the time of 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)

Has anyone ever had this problem?

    
asked by anonymous 17.09.2015 / 00:12

2 answers

0

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

    
17.09.2015 / 14:29
0

I did a quick search and found a similar post Pro post link , pointed out that the problem may only be with the firewall, try checking it out there.

I hope I could have helped with something.

Embrace

    
17.09.2015 / 08:10