-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Unable to load script from assets 'index.android.bundle'. #1474
Comments
fixed by this |
Not working for staging
run |
Hi @LzxHahaha, Could you please clarify which version of |
gradle 3.2.1 there are the generated files after run |
@LzxHahaha thank you for that demo! I reproduced the issue and found how to fix it. project.ext.react = [
entryFile: "index.js",
jsBundleDirDebug: "$buildDir/intermediates/merged_assets/debug/mergeDebugAssets/out",
jsBundleDirStaging: "$buildDir/intermediates/merged_assets/staging/mergeStagingAssets/out",
jsBundleDirRelease: "$buildDir/intermediates/merged_assets/release/mergeReleaseAssets/out"
] It's a workaround for another issue ( You need this (I've found a good example here): project.ext.react = [
entryFile: "index.js",
bundleInStaging: true,
devDisabledInStaging: true,
] Please let me know if it helps you! |
it work, thanks |
Great, glad to help! I'll close the issue for now, but if you have any questions, feel free to reopen it. |
i'm getting same issue in signing release apk
|
Removing jsBundleDirDebug: "$buildDir/intermediates/merged_assets/debug/mergeDebugAssets/out",
jsBundleDirRelease: "$buildDir/intermediates/merged_assets/release/mergeReleaseAssets/out" fixed it for me. Looks like I added them to fix something with |
Thanks so much for filing an issue or feature request! Please fill out the following (wherever relevant):
Steps to Reproduce
Expected Behavior
No crash
Actual Behavior
adb logcat:
I try to unarchiver the apk, there is nothing in
asset
directory, so I tried to manually generate a bundle withand generate a new apk, this one work just fine.
It any way to automatic generate
index.android.bundle
?Environment
The text was updated successfully, but these errors were encountered: