react native 小坑筆記

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博客

地址鏈接:TaskExecutionException: Execution failed for task ':app:transformJackWithJackForDebug'最權威有效的解決方案 - 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 []

?著作權歸作者所有,轉載或內容合作請聯系作者
【社區(qū)內容提示】社區(qū)部分內容疑似由AI輔助生成,瀏覽時請結合常識與多方信息審慎甄別。
平臺聲明:文章內容(如有圖片或視頻亦包括在內)由作者上傳并發(fā)布,文章內容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務。

相關閱讀更多精彩內容

友情鏈接更多精彩內容