Skip to content
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

Failed to load resource: the server responded with a status of 404 () #196

Closed
rohitchaurasiya151 opened this issue Aug 4, 2021 · 14 comments

Comments

@rohitchaurasiya151
Copy link

rohitchaurasiya151 commented Aug 4, 2021

Screenshot 2021-08-04 at 3 14 22 PM
When I upload the build on the server after the launch of the app I am getting this issue.

/splash/img/light-background.png 404

and when I try to put a custom image with the same name it's showing two images on the splash.
Screenshot 2021-08-04 at 3 15 37 PM

@jonbhanson
Copy link
Owner

Is the light-background.png in the web/splash/img folder on your dev machine? Is it also present on the server?

@jonbhanson
Copy link
Owner

Feel free to reopen if you are still having trouble.

@techno-disaster
Copy link

This is still a issue, there is no light-background.png or dark-background.png generated

@jonbhanson jonbhanson reopened this Sep 23, 2021
@jonbhanson
Copy link
Owner

What version of the package are you using?

@techno-disaster
Copy link

What version of the package are you using?

tested on 1.2.2 and 1.2.1

@jonbhanson
Copy link
Owner

Is the light-background.png in the web/splash/img folder on your dev machine? Is it also present on the server?

@techno-disaster
Copy link

techno-disaster commented Sep 23, 2021

Is the light-background.png in the web/splash/img folder on your dev machine? Is it also present on the server?

nope, as I said, it wasn't generated. it's in neither places
edit: or do we need to manually set it? 🤔 I assumed it would generate one from color in config

@jonbhanson
Copy link
Owner

Is there any error message that appears when you run flutter pub run flutter_native_splash:create?

@jonbhanson
Copy link
Owner

Also, can you add your flutter doctor output?

@techno-disaster
Copy link

techno-disaster commented Sep 23, 2021

Is there any error message that appears when you run flutter pub run flutter_native_splash:create?

Looks like it occurs because I don't set background_image but I use color so I can't use background_image with it. https://github.com/jonbhanson/flutter_native_splash/blob/master/lib/flutter_native_splash.dart#L35

@techno-disaster
Copy link

techno-disaster commented Sep 23, 2021

Is there any error message that appears when you run flutter pub run flutter_native_splash:create?

Nope

[Android] Creating splash images
[Android] Updating android/app/src/main/res/drawable/launch_background.xml with splash image path
[Android] Updating android/app/src/main/res/drawable-night/launch_background.xml with splash image path
[Android] Updating android/app/src/main/res/drawable-v21/launch_background.xml with splash image path
[Android] Updating android/app/src/main/res/drawable-night-v21/launch_background.xml with splash image path
[Android] Updating styles.xml with full screen mode setting
[Android] Updating styles.xml with full screen mode setting
[iOS] Creating splash images
[iOS] Updating LaunchScreen.storyboard with width, and height
[iOS] Updating ios/Runner/Info.plist for status bar hidden/visible
[Web] Creating images
[Web] Creating images
[Web] Creating CSS
[Web] Updating index.html
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.5.1, on Pop!_OS 21.04 5.13.13-051313-generic, locale en_IN.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
[✓] Chrome - develop for the web
[✓] Linux toolchain - develop for Linux desktop
[✓] Android Studio (version 2020.3)
[✓] VS Code (version 1.60.2)
[✓] Connected device (2 available)

• No issues found!

@jonbhanson
Copy link
Owner

Thanks. One more thing, can you post your config?

@techno-disaster
Copy link

Thanks. One more thing, can you post your config?

flutter_native_splash:
  image: assets/images/splash.png
  color: "#ffffff"
  color_dark: "#252a31"

@jonbhanson
Copy link
Owner

OK, I found the source of this 404 and I will push out an update soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants