Mark Estrada Mark Estrada - 9 months ago 194
Android Question

Cordova error building - EPERM, operation not permitted

I am trying to build an android APK file for my project

C:\myApp>cordova build android
cp: copyFileSync: could not write to dest file (code=EPERM):C:\myApp\platforms\android\res\xml\config.xml

Error: EPERM, operation not permitted 'C:\myApp\platforms\android\res\xml\config.xml'
at Object.fs.openSync (fs.js:438:18)
at Object.fs.writeFileSync (fs.js:977:15)

I used windows 7 64 Bit.
What could be the reason?

My files by the way are versioned by subversion and I am not sure if that is the case.

Anyone encountered this one?

Answer Source

Re-install android as a platform, should re-create any folders that had bad permissions

cordova platform remove android

cordova platform add android