Unable to load script from assets 'index.android.bundle'. Make sure your bundle is packaged correctly or you're running a packager server

前端 未结 5 1439
别那么骄傲
别那么骄傲 2021-02-06 02:41

I am having working React Native application having version 0.38.0, when i have tried to upgrade it to 0.45.1 it is showing following error

java.lang.RuntimeExce         


        
5条回答
  •  梦如初夏
    2021-02-06 02:54

    Add these lines

    project.ext.react = [ entryFile: "index.js", bundleAssetName: "index.android.bundle", bundleInAlpha: true, bundleInBeta: true ]

    before apply from: "../../node_modules/react-native/react.gradle" in build.gradle

提交回复
热议问题