code-push-server
code-push-server copied to clipboard
[CodePush] Update is invalid - A JS bundle file named "null" could not be found within the downloaded contents. Please check that you are releasing your CodePush updates using the exact same JS bundle file name that was shipped with your app's binary
各位大神好,我使用以下版本 react-native": "0.63.5", react-native-code-push": "6.4.1", 本地部署 code-push-server :0.5.4 [email protected] 安卓做如下配置 private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) { @Override public boolean getUseDeveloperSupport() { return BuildConfig.DEBUG; } @Override protected String getJSBundleFile() { return CodePush.getJSBundleFile(); } @Override protected List<ReactPackage> getPackages() { @SuppressWarnings("UnnecessaryLocalVariable") List<ReactPackage> packages = new PackageList(this).getPackages(); packages.add(new WeChatPackage()); // Add this line new CodePush( "xxxxxxx", MainApplication.this, BuildConfig.DEBUG, "http://192.168.1.1:3000" ); return packages; } }; 开发环境测试 CodePush 下载完毕后报 [CodePush] Update is invalid - A JS bundle file named "null" could not be found within the downloaded contents. Please check that you are releasing your CodePush updates using the exact same JS bundle file name that was shipped with your app's binary ios正常,安卓下有问题,还请大神帮助一下,谢谢