Reload,Live Reload无效,有解决办法么?



  • RN on windows
    RN version:0.22.2
    RN-cli version:0.2.0

    我在自己的PC上安装运行RN项目,没有任何问题,但是我打开index.android.js,编辑代码保存,然后在(尝试过两个不同的)手机上reload,结果没有变化。

    我再把显示在终端上的链接,copy到浏览器访问,发现返回的也不是我修改的代码。

    难道这是bug?有人遇到同样的问题吗?求解答~谢谢大大!

    PS:我在执行命令:
    react-native run-android
    中途发现可疑的 信息:
    :app:generateDebugAssets UP-TO-DATE
    :app:mergeDebugAssets
    :app:generateDebugResValues
    :app:generateDebugResources
    :app:mergeDebugResources
    :app:bundleDebugJsAndAssets SKIPPED
    :app:processDebugManifest
    :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
    :app:compileDebugNdk UP-TO-DATE
    :app:compileDebugSources
    :app:preDexDebug
    :app:dexDebug
    :app:validateDebugSigning
    :app:packageDebug
    :app:zipalignDebug
    :app:assembleDebug
    :app:installDebug
    Installing APK 'app-debug.apk' on 'Lenovo A3600-d - 4.4.2'
    Installed on 1 device.

    BUILD SUCCESSFUL

    Total time: 3 mins 21.494 secs
    Starting the app (D:\Android\android-sdk/platform-tools/adb shell am start -n com.projectone/.MainActivity)...
    Starting: Intent { cmp=com.projectone/.MainActivity }



  • 我也碰到这样的问题,在Windows下安装的RN
    后来不知道怎么就自己好了,莫名其妙的。


登录后回复