-
Notifications
You must be signed in to change notification settings - Fork 135
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
a problem when load the latest jsbundle after download the file in android 0.29+ #47
Comments
@jianguangyu, I have error /Users/danil/Desktop/projects/DriverApp/android/app/src/main/java/com/driverapp/MainApplication.java:40: error: cannot find symbol |
@DanDance |
@jianguangyu |
@jianguangyu |
@alex44jzy solved? |
Hey,I found that i can't load the jsbundle whitch is downloaded from the server in android 0.29+.
Then I override function getJSBundleFile of class ReactNativeHost in file MainApplication.java,like this:
@nullable
@OverRide
protected String getJSBundleFile() {
updater = ReactNativeAutoUpdater.getInstance(getApplicationContext());
updater.setMetadataAssetName("meta.android.json");
String location = updater.getLatestJSCodeLocation();
return location;
}
It worked.
I hope my case will be helpful to you lib.
The text was updated successfully, but these errors were encountered: