React Native-重命名后该应用程序无法正常工作

时间:2019-04-09 22:20:26

标签: react-native react-native-android

所以我想重命名我的应用,然后我做了react-native-rename GesFaturacao并得到以下输出:


The system cannot find the path specified.(x10)
\android\app\src\main\res\values\strings.xml MODIFIED
\index.js MODIFIED
\package.json MODIFIED
\app.json MODIFIED
\android\settings.gradle MODIFIED
\app.json MODIFIED
The system cannot find the path specified.
The system cannot find the path specified.
\android\app\BUCK MODIFIED
\android\app\build.gradle MODIFIED
\android\app\src\main\AndroidManifest.xml MODIFIED
Done removing previous bundle directory.
Done removing builds.
APP SUCCESSFULLY RENAMED TO "GesFaturacao"!   
Please make sure to run "watchman watch-del-all" and "npm start --reset-cache" before running the app.

然后我执行了两个命令watchman watch-del-allnpm start --reset-cache

第一个运行正常,但是第二个出现很多错误

输出:

events.js:173
      throw er; // Unhandled 'error' event
      ^

Error: listen EADDRINUSE: address already in use :::8081
    at Server.setupListenHandle [as _listen2] (net.js:1256:14)
    at listenInCluster (net.js:1304:12)
    at Server.listen (net.js:1392:7)
    at Promise (D:\REACT\Nav\node_modules\metro\src\index.js:253:20)
    at new Promise (<anonymous>)
    at Object.<anonymous> (D:\REACT\Nav\node_modules\metro\src\index.js:252:14)
    at Generator.next (<anonymous>)
    at asyncGeneratorStep (D:\REACT\Nav\node_modules\metro\src\index.js:46:24)
    at _next (D:\REACT\Nav\node_modules\metro\src\index.js:66:9)
Emitted 'error' event at:
    at Server.WebSocketServer._onServerError (D:\REACT\Nav\node_modules\ws\lib\WebSocketServer.js:82:50)
    at Server.emit (events.js:202:15)
    at emitErrorNT (net.js:1283:8)
    at processTicksAndRejections (internal/process/next_tick.js:76:17)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! GesFaturacao@0.0.1 start: `node node_modules/react-native/local-cli/cli.js start`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the GesFaturacao@0.0.1 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\paulo\AppData\Roaming\npm-cache\_logs\2019-04-09T22_09_42_187Z-debug.log

现在我的应用程序无法启动。我在git和一些论坛上搜索,其中一些论坛说要去我的MainActivity,所以我去了,问题是现在没有MainActivity文件,以某种方式在重命名后被删除了

我该怎么办?有什么办法可以还原该过程?

0 个答案:

没有答案