-
Notifications
You must be signed in to change notification settings - Fork 214
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
pub finished with exit code 255 #3
Comments
I can add some details as it looks like most of the programming worked. I'll list what was changed here. I'm using Win 10. There are 5 new resources in app/src/main/res alongside the normal 'mipmap-hdpi', etc. and these are 'drawable-hdpi', 'drawable-mdpi' etc. drawable\launch_background.xml has been deleted ios\Runner\AppDelegate.m has been deleted. Another error? ok, let me know if I can help in any way. |
Thank you for reporting this. We are dealing with two different issues here. First issue Can you provide the content of Second issue
If any of these steps throws an Exception (which was exactly what happened) the package stops running, even if any others steps are not finished yet. This is not ideal because it can create empty files or update by half. I fixed this issue on version 0.1.5 by making every step run synchronously. If some step throws an Exception, it will not cause side effects. Please update the package before running it again. |
flutter pub pub run flutter_native_splash:create |
@htsnet the package couldn't find MainActivity file to update. Are you using Java or Kotlin? If it is Java: If it is Kotlin: |
@henriquearthur I don´t have /kotlin folder |
@henriquearthur It works now. Thank you! Great job. |
@lubi888 my apologies. I said that:
But that's not true. That line is added by flutter_native_splash to reference the splash image. (probably said that confusing with iOS). Not sure why the package couldn't read the Anyway, glad it's working for you. It's actually "obrigado" as I am from Brazil. First publish so far it's actually a very good experience! Thanks. :) |
In my case the problem was that I had changed the package name com.example for com.mydomain and forget of change already the android path name. If that is you case too try change here like that: |
My package: com.geekbusinesslab.PepsRelatorios. what should i do? |
Have you tried renaming the folder to android/app/src/main/kotlin/com/geekbusinesslab/pepsfield_relatorios_app/MainActivity.kt I dd that and now the create command completes and the launch image works on my android emulator. However it still does not show up on my ios simulator (iphone SE 2nd gen). I just see a black screen until my app shows up. Flutter 1.17.0 • channel beta • https://github.com/flutter/flutter.git I can't get a launch screen to work on the ios sim by other any other methods (Xcode) either so it is probably not a problem with this package. |
C:\flutterApps\newsplash>flutter pub pub run flutter_native_splash:create #0 int._throwFormatException (dart:core-patch/integers_patch.dart:131:5) This is the error I'm getting. Anything I can do about this? |
My package name is Edit: ended up doing |
Hi,
Just saw your link on reddit and wanted to give it a try.
Here's the error code:
flutter pub pub run flutter_native_splash:create [Android] Creating splash images [Android] Updating launch_background.xml with splash image path [iOS] Creating splash images [iOS] Updating LaunchScreen.storyboard with width, height and color Unhandled exception: RangeError: Invalid value: Only valid value is 0: -1 #0 List.insert (dart:core-patch/growable_array.dart:11:7) #1 _updateLaunchBackgroundFileWithImagePath (package:flutter_native_splash/android.dart:104:11) <asynchronous suspension> #2 _applyLaunchBackgroundXml (package:flutter_native_splash/android.dart:77:12) #3 createSplash (package:flutter_native_splash/android.dart:26:9) <asynchronous suspension> #4 createSplash (package:flutter_native_splash/flutter_native_splash.dart:18:5) #5 main (file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_native_splash-0.1.4/bin/create.dart:5:3) #6 _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:299:32) #7 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:172:12) pub finished with exit code 255
The text was updated successfully, but these errors were encountered: