当我尝试为android --prod --release创建Cordova版本时。我收到此错误:
来源和目的地不得相同。
错误:来源和目的地不能相同。
在checkPaths(C:\ Users \ est-acoelho \ Documents \ app-movel-master \ app-movel-master \ node_modules \ cordova-common \ node_modules \ fs-extra \ lib \ copy-sync \ copy-sync .js:185:11)
at Object.copySync(C:\ Users \ est-acoelho \ Documents \ app-movel-master \ app-movel-master \ node_modules \ cordova-common \ node_modules \ fs-extra \ lib \ copy-sync \ copy -sync.js:25:20)
在updatePathWithStats(C:\ Users \ est-acoelho \ Documents \ app-movel-master \ app-movel-master \ node_modules \ cordova-common \ src \ FileUpdater.js:103:24)
在C:\ Users \ est-acoelho \ Documents \ app-movel-master \ app-movel- master \ node_modules \ cordova-common \ src \ FileUpdater.js:298:19
在Array.forEach()
在Object.mergeAndUpdateDir(C:\ Users \ est-acoelho \ Documents \ app-movel-master \ app-movel-master \ node_modules \ cordova-common \ src \ FileUpdater.js:296:33) 在updateWww上(C:\ Users \ est-acoelho \ Documents \ app-movel-master \ app-movel-master \ platforms \ android \ cordova \ lib \ prepare.js:157:17)
在Api.module.exports.prepare(C:\ Users \ est-acoelho \ Documents \ app-movel-master \ app-movel-master \ platforms \ android \ cordova \ lib \ prepare.js:56:19 )
在Api.prepare(C:\ Users \ est-acoelho \ Documents \ app-movel-master \ app-movel-master \ platforms \ android \ cordova \ Api.js:177:45)
在C:\ Users \ est-acoelho \ AppData \ Roaming \ npm \ node_modules \ cordova \ node_modules \ cordova-lib \ src \ cordova \ prepare.js:105:36
我已经完成了Cordova平台删除android和Cordova平台添加android。
我看到此问题在Android 8.0.0上出现,但我必须使用它,因为Google Play控制台仅允许我上传API +26(+8)的应用