-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
[ANDROID] error: [CodePush] An error has occurred : value@index.android.bundle: #1120
Comments
@ruslan-bikkinin please help me, thanks |
Hi @quy1403 and thanks for submitting the issue. First of all, please make sure you have configured CodePush SDK on native side as described here: #1088 (comment). Then if it will not help you, please, share with us javascript code sample of how you use CodePush SDK on client side. |
hi @ruslan-bikkinin
my JS Code *****WHen the app starts
****my code push handle callback
I build release apk and install it on xperia z5, and get logcat from android studio. LOG here
I think codepush downloaded package successfully, but can not install update. If I kill my app and reopen it. The update was installed and every thing worked as I expect. NOTE: on IOS, codepush work perfectly |
@quy1403 could you please share the JS code you are using but without unknown methods to us like |
@quy1403, closing this, please feel free to reopen. |
UPDATE FAILED ONLY ON ANDROID, IOS WORK WELL
Steps to Reproduce
code-push release-react EDUAPP_ANDROID android
Detecting android app version:
Using the target binary version value "1.0" from "android/app/build.gradle".
Running "react-native bundle" command:
node node_modules/react-native/local-cli/cli.js bundle --assets-dest /var/folders/ts/j35p87tj2rs0qqw6cbfxqkgw0000gn/T/CodePush --bundle-output /var/folders/ts/j35p87tj2rs0qqw6cbfxqkgw0000gn/T/CodePush/index.android.bundle --dev false --entry-file index.js --platform android
Scanning folders for symlinks in /Users/pantoo/Desktop/ReactNative/EduApp/node_modules (18ms)
Scanning folders for symlinks in /Users/pantoo/Desktop/ReactNative/EduApp/node_modules (37ms)
Loading dependency graph, done.
bundle: start
bundle: finish
bundle: Writing bundle output to: /var/folders/ts/j35p87tj2rs0qqw6cbfxqkgw0000gn/T/CodePush/index.android.bundle
bundle: Done writing bundle output
bundle: Copying 1 asset files
bundle: Done copying assets
Releasing update contents to CodePush:
Upload progress:[==================================================] 100% 0.0s
Successfully released an update containing the "/var/folders/ts/j35p87tj2rs0qqw6cbfxqkgw0000gn/T/CodePush" directory to the "Staging" deployment of the "EDUAPP_ANDROID" app.
Expected Behavior
check update, download, install, update my app successfuully
Actual Behavior
can not update but if I kill the app and reopen it, the app is updated successfully
STACK TRACE AND/OR SCREENSHOTS
Checking for update.
12-27 16:30:54.994 8296-8318/? I/ReactNativeJS: [CodePush] Reporting binary update (1.0)
12-27 16:30:55.072 8296-8318/? I/ReactNativeJS: Running application "Login" with appParams: {"initialProps":{"screenInstanceID":"screenInstanceID2","navigatorID":"navigatorID1_nav","navigatorEventID":"screenInstanceID2_events"},"rootTag":1}. DEV === false, development-level warning are OFF, performance optimizations are ON
12-27 16:30:56.149 8296-8318/? I/ReactNativeJS: Downloading package.
12-27 16:30:57.037 8296-8318/? I/ReactNativeJS: Installing update.
12-27 16:30:57.068 8296-8318/? I/ReactNativeJS: [CodePush] An error has occurred : value@index.android.bundle:370:2498
[native code]
s@index.android.bundle:805:7018
index.android.bundle:805:23829
index.android.bundle:812:505
n@index.android.bundle:116:1149
index.android.bundle:116:896
index.android.bundle:116:1331
n@index.android.bundle:116:1149
r@index.android.bundle:116:1406
index.android.bundle:116:1523
index.android.bundle:114:613
index.android.bundle:114:641
index.android.bundle:74:1764
a@index.android.bundle:74:506
o@index.android.bundle:74:870
callImmediates@index.android.bundle:74:3165
value@index.android.bundle:69:2778
index.android.bundle:69:1360
value@index.android.bundle:69:2606
value@index.android.bundle:69:1330
[native code]
value@index.android.bundle:69:1265
[native code]
Reproducible Demo
Environment
"react-native-code-push": "^5.1.3-beta",
"react-native": "0.50.3",
"react-native-navigation": "^1.1.313",
The text was updated successfully, but these errors were encountered: