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

bool is not a subtype of type 'String' #80

Closed
alvinvin00 opened this issue Jul 30, 2020 · 3 comments
Closed

bool is not a subtype of type 'String' #80

alvinvin00 opened this issue Jul 30, 2020 · 3 comments

Comments

@alvinvin00
Copy link

alvinvin00 commented Jul 30, 2020

My project are using Kotlin and Android Embedding v2 enabled.

I'm confused because when i'm diving to source code, there's nothing that indicates a function retrieved wrong return type.

Stack Trace :

D:\Eliteguard\sg_absence>flutter pub run flutter_native_splash:create
[Android] Creating splash images
[Android] Updating launch_background.xml with splash image path
[Android] Updating colors.xml with color for splash screen background
[Android] Updating styles.xml with full screen mode setting
Unhandled exception:
type 'bool' is not a subtype of type 'String'
#0      _javaOrKotlin (package:flutter_native_splash/android.dart:330:12)
<asynchronous suspension>
#1      _applyMainActivityUpdate (package:flutter_native_splash/android.dart:308:33)
#2      createSplash (package:flutter_native_splash/android.dart:42:9)
<asynchronous suspension>
#3      createSplash (package:flutter_native_splash/flutter_native_splash.dart:20:11)
<asynchronous suspension>
#4      main (file:///C:/Users/Alvin/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/flutter_native_splash-0.1.9/bin/create.dart:5:3)
#5      _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:299:32)
#6      _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:168:12)
pub finished with exit code 255
@jonbhanson
Copy link
Owner

Can you share your flutter_native_splash settings from your pubspec.yaml or flutter_native_splash.yaml? That would help in diagnosis.

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

alvinvin00 commented Jan 14, 2021

hello there, it's been a long time since i created this issue so maybe a lot has changed since then. I'll try to refire the command, see if it still persists

EDIT : After i refired it, nothing broke, that's weird but hey at least it's fixed now so i'm closing the issue. I'll reopen it if it came up again. Thanks :)

P.S. Here's my pubspec.yaml snippet when that happened (and i haven't touched it to this day).

flutter_native_splash:
  image: assets/images/splash_logo.png
  color: "6DCFF6"
  fill: true

@jonbhanson
Copy link
Owner

Glad to hear it's working ok. 👍🏻

@jonbhanson jonbhanson removed the waiting response Further information is requested label Jan 14, 2021
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

2 participants