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

每次重新执行yarn start和yarn run android后都会报错 ,需要执行gradlew clean才会正常 #40

Open
heqs opened this issue Jan 18, 2020 · 4 comments

Comments

@heqs
Copy link

heqs commented Jan 18, 2020

报错内容如下
Error: EPERM: operation not permitted, lstat 'G:\MySource\noter\Mozi\android\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values'
Emitted 'error' event at:
at NodeWatcher. (G:\MySource\noter\Mozi\node_modules\sane\src\node_watcher.js:289:14)
at G:\MySource\noter\Mozi\node_modules\graceful-fs\polyfills.js:284:29
at FSReqWrap.oncomplete (fs.js:154:21)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

然后执行 gradlew clean,重新yarn start和yarn run android就 正常了,不知道为什么会这样

@duheng
Copy link
Owner

duheng commented Jan 19, 2020

报错内容如下
Error: EPERM: operation not permitted, lstat 'G:\MySource\noter\Mozi\android\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values'
Emitted 'error' event at:
at NodeWatcher. (G:\MySource\noter\Mozi\node_modules\sane\src\node_watcher.js:289:14)
at G:\MySource\noter\Mozi\node_modules\graceful-fs\polyfills.js:284:29
at FSReqWrap.oncomplete (fs.js:154:21)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

然后执行 gradlew clean,重新yarn start和yarn run android就 正常了,不知道为什么会这样

你用的是Android Studio3.+ ?

@heqs
Copy link
Author

heqs commented Jan 19, 2020

我的as版本是3.5.3,貌似只要在命令行执行yarn start和yarn run android吧,需要用到as吗?

@duheng
Copy link
Owner

duheng commented Jan 20, 2020

我的as版本是3.5.3,貌似只要在命令行执行yarn start和yarn run android吧,需要用到as吗?

这个是模拟器的问题,每次升级Android Studio都会遇到类似问题, 目前你先用安卓机调试开发,或者把Android Studio降级到之前的版本,我后面有空兼容一下。

@heqs
Copy link
Author

heqs commented Jan 20, 2020

好的,谢谢大佬

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

2 participants