[Window][React Native][Android] 疑難雜症

  • 587
  • 0

記錄了Ryan在運作的過程中,面臨的各種怪問題。

當我執行react-native run-android時,出現了

:app:processDebugResources
Unknown source file : warning: string 'catalyst_debugjs' has no default translation.
Unknown source file : warning: string 'catalyst_element_inspector' has no default translation.
Unknown source file : warning: string 'catalyst_jsload_error' has no default translation.
Unknown source file : warning: string 'catalyst_jsload_message' has no default translation.
Unknown source file : warning: string 'catalyst_jsload_title' has no default translation.
Unknown source file : warning: string 'catalyst_reloadjs' has no default translation.
Unknown source file : warning: string 'catalyst_settings' has no default translation.
Unknown source file : warning: string 'catalyst_settings_title' has no default translation.

:app:generateDebugSources
:app:processDebugJavaRes UP-TO-DATE
:app:compileDebugJavaWithJavac UP-TO-DATE
:app:compileDebugNdk UP-TO-DATE
:app:compileDebugSources UP-TO-DATE
:app:preDexDebug UP-TO-DATE
:app:dexDebug UP-TO-DATE
:app:validateDebugSigning
:app:packageDebug
:app:zipalignDebug
:app:assembleDebug
:app:installDebug
Installing APK 'app-debug.apk' on 'Samsung Galaxy S6 - 5.1.0 - API 22 - 1440x2560 - 5.1'
Installed on 1 device.

BUILD SUCCESSFUL

Total time: 31.634 secs
Starting the app (D:\Android\AndroidSDK\android-sdk-windows/platform-tools/adb shell am start -n com.awesomeproject/.MainActivity)...
Starting: Intent { cmp=com.awesomeproject/.MainActivity }

經過Google大神的與StackOverflow大大的開釋,原來是必須在

將錯誤訊息中的'catalyst_debugjs','catalyst_element_inspector'...等寫入到strings.xml檔案中

主要的狀況是這些文字,沒有被紀錄到string.xml的文件中,這樣畫面無法顯示到底要秀哪些文字阿~,或許再下一個版本,該問題就會被修正吧...


進入Android模擬器之後,直接殺個我措手不及

以上文章由Ryan整理,若有侵犯版權、勘誤,請來信告知