1、调试时设置调试ip和port,中间因为使用了中文的冒号:,导致了程序设置完就一直崩溃。
2、解决rg.gradle.api.internal.tasks.compile.CompilationFailedException: Compilation failed
错误提示: rg.gradle.api.internal.tasks.compile.CompilationFailedException: Compilation failed Compilation failed; see the compiler error output for details.
解决过程 terminal 输入 gradlew compileDebugSources
找到错误提示并解决。
地址链接:成功解决org.gradle.api.internal.tasks.compile.CompilationFailedException: Compilation failed; - CSDN博客
3、错误: error: bundling failed: "Unable to resolve module `AccessibilityInfo` from `/Users/apple/WebstormProjects/carracing2/node_modules/react-native/Libraries/react-native/react-native-implementation.js`: Module does not exist in the module map\n\nThis might be related to https://github.com/facebook/react-native/issues/4968\nTo resolve try the following:\n 1. Clear watchman watches: `watchman watch-del-all`.\n 2. Delete the `node_modules` folder: `rm -rf node_modules && npm install`.\n 3. Reset packager cache: `rm -fr $TMPDIR/react-*` or `npm start -- --reset-cache`." 最近玩react-native碰到这么个错,解决办法就是关掉node后台进程,用npm start -- --reset-cache命令重新启动packager服务,上面说的所有方法亲试只有这个有效 --------------------- 链接:问题记录
4、could not find method compileOnly() for arguments []