react-native-code-push icon indicating copy to clipboard operation
react-native-code-push copied to clipboard

index.android.bundle: No such file or directory

Open tarunkonda123 opened this issue 8 years ago • 8 comments

I/ReactNativeJS: [CodePush] Checking for update. I/ReactNativeJS: [CodePush] Checking for update. I/ReactNativeJS: [CodePush] Downloading package. I/ReactNativeJS: [CodePush] Downloading package. D/ReactNative: [CodePush] Error deleting file download.zip D/ReactNative: [CodePush] Applying full update. I/ReactNativeJS: [CodePush] Installing update. I/ReactNativeJS: [CodePush] An unknown error occurred. eactexample/files/CodePush/unzipped/CodePush/index.android.bundle.meta: open failed: ENOENT (No such file or directory) I/ReactNativeJS: [CodePush] Update is installed and will be run on the next app restart.

After restart

Process: t.com.reactexample, PID: 13949 com.facebook.jni.CppException: facebook::react::Recoverable: Could not open file/data/data/t.com.reactexample/files/CodePush/d0eba7f5a364cac891fc23cf0353bdc675d0aee9793afade0787ea3e3acca6a3/CodePush/index.android.bundle: No such file or directory at com.facebook.react.bridge.CatalystInstanceImpl.jniLoadScriptFromFile(Native Method) at com.facebook.react.bridge.CatalystInstanceImpl.loadScriptFromFile(CatalystInstanceImpl.java:221) at com.facebook.react.bridge.JSBundleLoader$2.loadScript(JSBundleLoader.java:52) at com.facebook.react.bridge.CatalystInstanceImpl.runJSBundle(CatalystInstanceImpl.java:234) at com.facebook.react.ReactInstanceManager.createReactContext(ReactInstanceManager.java:1114) at com.facebook.react.ReactInstanceManager.access$900(ReactInstanceManager.java:113) at com.facebook.react.ReactInstanceManager$5.run(ReactInstanceManager.java:911) at java.lang.Thread.run(Thread.java:818)

tarunkonda123 avatar Apr 30 '18 13:04 tarunkonda123

Hi @tarunkonda123,

Thanks for reporting! Could you please provide some part of code which can help me reproduce your issue? Also, would be great if you will provide your Android version.

Thanks, Alexander

alexandergoncharov-zz avatar Apr 30 '18 15:04 alexandergoncharov-zz

Hi @alexandergoncharov Thanks for your valuable time resolved my issue the problem is about this path apply from: "../../node_modules/react-native/react.gradle" apply from: "../../node_modules/react-native-code-push/android/codepush.gradle"

tarunkonda123 avatar May 01 '18 04:05 tarunkonda123

@tarunkonda123 Do you remember what was wrong with those paths in the end?

I too have build.gradle

...
apply from: "../../node_modules/react-native/react.gradle"
apply from: "../../node_modules/react-native-code-push/android/codepush.gradle"
...

CodePush generally works great, but error reporting still logging few events

Error: /data/user/0/io.x.y/files/CodePush/download.zip (No such file or directory)
Error: /data/user/0/io.x.y/files/CodePush/download.zip: open failed: ENOENT (No such file or directory)

On Android 9 and Android 10 devices, but unsure why.

leotm avatar Apr 24 '20 14:04 leotm

@leotm I met the same issue.Did you solve it?

cq0702 avatar Apr 28 '20 02:04 cq0702

@cq0702 Unfortunately not, still unresolved :/

Screenshot 2020-04-28 at 10 32 57

leotm avatar Apr 28 '20 09:04 leotm

still facing some instances of this, did anyone figure this out yet?

swetht avatar Feb 18 '21 10:02 swetht

Same issue, has anyone found the solution

feiyingx avatar May 04 '21 00:05 feiyingx

Same issue, has anyone found the solution ?

plus24-library avatar May 20 '21 03:05 plus24-library