Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[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 #389

Open
qimengfeidiao opened this issue Sep 11, 2024 · 0 comments

Comments

@qimengfeidiao
Copy link

各位大神好,我使用以下版本
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 getPackages() {
@SuppressWarnings("UnnecessaryLocalVariable")
List 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正常,安卓下有问题,还请大神帮助一下,谢谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant