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

cannot copy dark-backgorund.png android #163

Closed
fredgrott opened this issue Apr 10, 2021 · 8 comments
Closed

cannot copy dark-backgorund.png android #163

fredgrott opened this issue Apr 10, 2021 · 8 comments

Comments

@fredgrott
Copy link

does not create the android dark background image for splash, my terminal output is:
PS D:\fredgrttsstuff\GithubProjects\base_getx> flutter pub run flutter_native_splash:create
[Android] Updating android/app/src/main/res/drawable/launch_background.xml with splash image path
Unhandled exception:
FileSystemException: Cannot copy file to 'android/app/src/main/res/drawable-night/background.png', path = 'assets/dark/background.png' (OS Error: The system cannot find the path specified.
, errno = 3)
#0 _File.throwIfError (dart:io/file_impl.dart:635:7)
#1 _File.copySync (dart:io/file_impl.dart:340:5)
#2 _createBackground (package:flutter_native_splash/ios.dart:273:37)
#3 _createAndroidSplash (package:flutter_native_splash/android.dart:57:3)
#4 tryCreateSplashByConfig (package:flutter_native_splash/supported_platform.dart:77:5)
#5 tryCreateSplash (package:flutter_native_splash/supported_platform.dart:28:3)
#6 createSplash (package:flutter_native_splash/flutter_native_splash.dart:17:3)
#7 main (file:///D:/fluttersdk/myfluttersdk/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_native_splash-1.1.7+1/bin/create.dart:5:3)
#8 _delayEntrypointInvocation. (dart:isolate-patch/isolate_patch.dart:281:32)
#9 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:184:12)
pub finished with exit code 255
PS D:\fredgrttsstuff\GithubProjects\base_getx>

@jonbhanson
Copy link
Owner

Hello @fredgrott. In your title the name is dark-backgorund.png with a dash, but in the error message the filename is background.png without the dash. Is it possible the filename in pubspec.yaml is different from the filename of the file?

@baguskto
Copy link

I have the same issue for dark mode. The system says OS Error: The system cannot find the path specified. I have to make sure the name path is correct. But it still can't copy my dark image.

@Morena96
Copy link

same issue any solutions?

@jonbhanson
Copy link
Owner

@baguskto @Morena96 are you running Android Studio on Windows?

@baguskto
Copy link

baguskto commented Apr 20, 2021

@jonbhanson Nope, I running Android Studio on Linux

@jonbhanson
Copy link
Owner

@baguskto @Morena96 can you paste your error output?

@baguskto
Copy link

[Android] Creating splash images
[Android] Updating android/app/src/main/res/drawable/launch_background.xml with splash image path
Unhandled exception:
FileSystemException: Cannot copy file to 'android/app/src/main/res/drawable-night/background.png', path = 'assets/images/splash_background_dark.png' (OS Error: No such file or directory, errno = 2)
#0 _File.throwIfError (dart:io/file_impl.dart:635:7)
#1 _File.copySync (dart:io/file_impl.dart:340:5)
#2 _createBackground (package:flutter_native_splash/ios.dart:273:37)
#3 _createAndroidSplash (package:flutter_native_splash/android.dart:57:3)
#4 tryCreateSplashByConfig (package:flutter_native_splash/supported_platform.dart:77:5)
#5 tryCreateSplash (package:flutter_native_splash/supported_platform.dart:28:3)
#6 createSplash (package:flutter_native_splash/flutter_native_splash.dart:17:3)
#7 main (file:///home/baguskto/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_native_splash-1.1.7+1/bin/create.dart:5:3)
#8 _delayEntrypointInvocation. (dart:isolate-patch/isolate_patch.dart:281:32)
#9 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:184:12)
pub finished with exit code 255
@jonbhanson

@jonbhanson
Copy link
Owner

Found the source of the problem; will push 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

4 participants