Closed yanwzhang closed 3 years ago
Having exactly same issue here.
Having exactly same issue here.
Environment react-native-code-push 6.3.0 react-native 0.64.0
Same here.
"react-native": "0.63.4", "react-native-code-push": "6.2.1",
Noticed that codepush will work for Android inconsistently.
Get this error:
IllegalStateException
java.lang.IndexOutOfBoundsException: index=1 count=0
Both android and iOS work normally at react-native 0.63.0. But android update fail while I use react-native 0.64.0. (iOS work normally at react-native 0.64.0)
Same issue facing React-native: 0.61.5 codepush: 6.1.1
Seems android device is never running or able to get update. App center shows code push information with zero installation.
Both android and iOS work normally at react-native 0.63.0. But android update fail while I use react-native 0.64.0. (iOS work normally at react-native 0.64.0)
When I used codepush.sync() function, I got a CodePush.SyncStatus.UNKNOWN_ERROR from SyncStatusChangedCallback function.
When we'll be getting 0.64 RN support, team ? :)
Having same issue, no update reflecting in android, iOS works.
"react-native": "0.63.4"
"react-native-code-push": "^7.0.1"
Facing the same issue:
"react-native": "0.63.4", "react-native-code-push": "6.2.1"
Any updates on this?
Same here. 0.63.4 RN, code push 6.4.0
The following is written to the log: [Thu May 13 2021 16:30:31.700] LOG [CodePush] Sync already in progress. [Thu May 13 2021 16:30:31.120] LOG [CodePush] Checking for update. [Thu May 13 2021 16:30:31.117] LOG [CodePush] Reporting binary update (2.0.30) [Thu May 13 2021 16:30:34.201] LOG [CodePush] Awaiting user action. [Thu May 13 2021 16:30:37.649] LOG [CodePush] Downloading package. [Thu May 13 2021 16:30:37.669] LOG [CodePush] An unknown error occurred. [Thu May 13 2021 16:30:37.670] LOG [CodePush] Error in getting binary resources modified time
EDIT - the build.gradle workaround worked for me, Android Studio 4.2, Gradle 6.7
Downgrade tools.build to 4.0.1 in android/build.gradle
classpath("com.android.tools.build:gradle:4.0.1")
and can fix this
I experienced the same problem. This solution works. (App crashes also be solved.)
https://github.com/microsoft/react-native-code-push/issues/1961#issuecomment-710698621
Same problem for us!
Downgrade tools.build to 4.0.1 in
android/build.gradle
classpath("com.android.tools.build:gradle:4.0.1")
and can fix this
Yes, it works to me, thank you!
Downgrade tools.build to 4.0.1 in
android/build.gradle
classpath("com.android.tools.build:gradle:4.0.1")
and can fix this
It works to me, too. Thank you!
Downgrade tools.build to 4.0.1 in
android/build.gradle
classpath("com.android.tools.build:gradle:4.0.1")
and can fix this
It's work for me. Thanks
I have tried not working!
I am using React native Version 0.70.5 GradlePropertie wrapper version distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-all.zip Build gradle classpath("com.android.tools.build:gradle:7.2.1")
My LOGS after I run APP
LOG [CodePush] Sync already in progress. LOG [CodePush] Checking for update. LOG [CodePush] Reporting binary update (1.0) LOG [CodePush] Downloading package.
`
"react": "18.1.0", "react-native": "0.70.5", "react-native-code-push": "7.0.4", "react-native-config": "^1.4.11", "react-native-countdown-circle-timer": "^3.0.9", "react-native-device-info": "^10.3.0", "react-native-vision-camera": "2.14.1", "redux-saga": "^1.2.1", "redux-saga-firebase": "^0.15.0", "vision-camera-code-scanner": "0.2.0", "vision-camera-face-detector": "0.1.8", `
I am getting every information in [Code Push] has syncing and checking but Update is not happening
I tried to add default config in android android/app/build.gradle
defaultConfig { ..... resValue 'string', "CODE_PUSH_APK_BUILD_TIME", String.format("\"%d\"", System.currentTimeMillis()) }
After adding this as reference given https://github.com/microsoft/react-native-code-push/issues/2063 also not working
I am using React native Version 0.70.5 GradlePropertie wrapper version distributionUrl=https://services.gradle.org/distributions/gradle-7.5.1-all.zip Build gradle classpath("com.android.tools.build:gradle:7.2.1")
My LOGS after I run APP
LOG [CodePush] Sync already in progress. LOG [CodePush] Checking for update. LOG [CodePush] Reporting binary update (1.0) LOG [CodePush] Downloading package.
`
"react": "18.1.0", "react-native": "0.70.5", "react-native-code-push": "7.0.4", "react-native-config": "^1.4.11", "react-native-countdown-circle-timer": "^3.0.9", "react-native-device-info": "^10.3.0", "react-native-vision-camera": "2.14.1", "redux-saga": "^1.2.1", "redux-saga-firebase": "^0.15.0", "vision-camera-code-scanner": "0.2.0", "vision-camera-face-detector": "0.1.8", `
I am getting every information in [Code Push] has syncing and checking but Update is not happening
I tried to add default config in android android/app/build.gradle
defaultConfig { ..... resValue 'string', "CODE_PUSH_APK_BUILD_TIME", String.format("\"%d\"", System.currentTimeMillis()) }
After adding this as reference given https://github.com/microsoft/react-native-code-push/issues/2063 also not working
Did you find a solution? i'm facing the same issue
+1
The code push changes are not reflecting as expected on android, works fine for iOS, the integration was done properly following android setup guide : https://github.com/microsoft/react-native-code-push/blob/HEAD/docs/setup-android.md
Steps to Reproduce
Expected Behavior
IOS and Android both get the change
Actual Behavior
Only IOS get the change, but android don't
Reproducible Demo
Examples
folder runnode create-app.js appName react-native@0.61.5 react-native-code-push@6.0.0
command to generate plain CodePushified React Native app. Please see description on top ofcreate-app.js
file content if neededEnvironment
(The more info the faster we will be able to address it!)