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

White screen on latest versions of Android Studio and Flutter Plugin #118

Closed
khalitovsv opened this issue Jan 14, 2021 · 8 comments
Closed

Comments

@khalitovsv
Copy link

flutter_native_splash does its job correctly... but when starting application its always white screen...

Steps to reproduce:

Upgrade all to latest versions.
Create new flutter project.
Folllow flutter_native_splash instructions.
Build app for android and start.
There is no any splashscreen.

@mmmcorpsvit
Copy link

try check

flutter/flutter#46486 (comment)

@jonbhanson
Copy link
Owner

@khalitovsv did you run flutter pub run flutter_native_splash:create?

If you include png file(s) in the config, did you add them to the correct path location?

I tried your steps to reproduce, but the splash screen was not white for me (unless I omitted one of the above)

@jonbhanson jonbhanson added the waiting response Further information is requested label Jan 14, 2021
@khalitovsv
Copy link
Author

khalitovsv commented Jan 14, 2021

@jonbhanson yes i am...

  1. File \ New \ New Flutter Project...

  2. Adding in pubspec.yaml:

dev_dependencies:
  flutter_native_splash: ^0.2.5
  
flutter_native_splash:
  color: "ff0000"
  1. Running in terminal:
C:\Development\Projects\Flutter\flutter_native_splash_test>flutter pub get
Running "flutter pub get" in flutter_native_splash_test...         367ms

C:\Development\Projects\Flutter\flutter_native_splash_test>flutter pub run flutter_native_splash:create
[Android] Updating colors.xml with color for splash screen background
[Android] Updating styles.xml with full screen mode setting
  1. Running application expecting to see red splash screen, but its white...

As i said berfore... plugin do its job correctly... and make all need changes in android res folder: res.zip

@INEWSK
Copy link

INEWSK commented Jan 14, 2021

Hello.

I'm having the same problem. here is my flutter doctor

[√] Flutter (Channel beta, 1.25.0-8.1.pre, on Microsoft Windows [Version 10.0.19042.685], locale en)
• Flutter version 1.25.0-8.1.pre at C:\Users\me\AppData\Local\Programs\Flutter\FlutterSDK
• Framework revision 8f89f6505b (4 weeks ago), 2020-12-15 15:07:52 -0800
• Engine revision 92ae191c17
• Dart version 2.12.0 (build 2.12.0-133.2.beta)

[√] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
• Android SDK at C:\Users\me\AppData\Local\Android\sdk
• Platform android-30, build-tools 30.0.3
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
• All Android licenses accepted.

[√] Chrome - develop for the web
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[√] Android Studio (version 4.1.0)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

[√] VS Code (version 1.52.1)
• VS Code at C:\Users\me\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.18.1

[√] Connected device (3 available)
• sdk gphone x86 arm (mobile) • emulator-5554 • android-x86 • Android 11 (API 30) (emulator)
• Chrome (web) • chrome • web-javascript • Google Chrome 87.0.4280.141
• Edge (web) • edge • web-javascript • Microsoft Edge 87.0.664.66

@khalitovsv
Copy link
Author

i've reinstalled Android Studio, all plugins... same situation...

@jonbhanson
Copy link
Owner

@khalitovsv are you in the Flutter beta channel?

@jonbhanson
Copy link
Owner

It looks like this may be an issue in the Flutter beta channel. Can you solve the problem by copying launch_background.xml from the android/app/src/main/res/drawable folder to android/app/src/main/res/drawable-v21 folder?

@khalitovsv
Copy link
Author

@jonbhanson yes, thank you! switched to stable channel, problem has gone!

@jonbhanson jonbhanson removed the waiting response Further information is requested label Jan 14, 2021
jonbhanson pushed a commit that referenced this issue Jan 14, 2021
…Flutter beta channel. Parse launch_background.xml with XML package for more reliability. Fixes #104, #118.
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