Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cordova(8.0.0)添加x5插件,编译异常(copyFileSync) #20

Open
lejun opened this issue Mar 26, 2018 · 2 comments
Open

cordova(8.0.0)添加x5插件,编译异常(copyFileSync) #20

lejun opened this issue Mar 26, 2018 · 2 comments

Comments

@lejun
Copy link

lejun commented Mar 26, 2018

cp: copyFileSync: could not write to dest file (code=ENOENT):D:\Work\Workspace\cordova\Hello\platforms\android\res\xml\config.xml

Parsing D:\Work\Workspace\cordova\Hello\platforms\android\res\xml\config.xml failed
(node:9928) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: ENOENT: no such file or directory, open 'D:\Work\Workspace\cordova\Hello\platforms\android\res\xml\config.xml'

执行 cordova plugin add x5webview-cordova-plugin 命令,会自动将依赖libs 移动到了原生(android)工程的根目录下,而不是在 app 目录,再执行 cordova build android时导致

https://github.com/apache/cordova-android/blob/6abd6d6b477966d6a40420800376d28bacd1d940/bin/templates/cordova/Api.js#L82

 if (AndroidStudio.isAndroidStudioProject(self.root) === true)

条件无法满足,造成找到文件路径

@fff89
Copy link

fff89 commented Apr 3, 2018

[email protected]可用

@snowdream
Copy link

希望能够支持[email protected] [email protected]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants