-
Notifications
You must be signed in to change notification settings - Fork 408
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Android Studio : pub finished with exit code 255 #352
Comments
Hello, I have the same issue, did you manage to find a solution? Thank you |
I have the same issue |
I did some digging and it seems that this is related to this bit of the code https://github.com/fluttercommunity/flutter_launcher_icons/blob/master/lib/android.dart#L309 basically
As a quick hack you can change the following line https://github.com/fluttercommunity/flutter_launcher_icons/blob/master/lib/android.dart#L309 - return int.parse(minSdk);
+ return minSdk.isNotEmpty ? int.parse(minSdk) : 0; |
@williamluke4 not working. in my situation, it works after |
This solved the problem thanks |
edit the file android/app/build.gradle and chnage the params like below
after the change run the below commands in terminal
after generating the icons successfully, change back the edited above lines like to their original form like below
|
I have an easy fix:
It just skips the parsing of the manifest file directly to get the minSDK version line. |
Thanks |
this worked for me, but I did not change back the syntax as you showed in the last step, will that be a problem? |
ℹ️ Info
version: 1.0.0+1
environment:
sdk: ">=2.16.1 <3.0.0"
💬 Description
#6 _delayEntrypointInvocation. (dart:isolate-patch/isolate_patch.dart:295:32)
#7 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:192:12)
pub finished with exit code 255
📜 Pubspec.yaml
dev_dependencies:
flutter_test:
sdk: flutter
flutter_launcher_icons: ^0.9.2
cupertino_icons: ^1.0.2
flutter_lints: ^1.0.0
flutter_icons:
android: "launcher_icon"
ios: true
image_path: "assets/icon/icon.png"
adaptive_icon_background: "assets/icon/icon.png"
The text was updated successfully, but these errors were encountered: