You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[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
各位大神好,我使用以下版本
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正常,安卓下有问题,还请大神帮助一下,谢谢
The text was updated successfully, but these errors were encountered:
各位大神好,我使用以下版本
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正常,安卓下有问题,还请大神帮助一下,谢谢
The text was updated successfully, but these errors were encountered: