Build APK with Flutter` exited with status code 1 #1375
Replies: 3 comments 2 replies
-
Can anyone help me with this issue? |
Beta Was this translation helpful? Give feedback.
1 reply
-
Hi @WebToMobile ,
Please check this SO link for more information. |
Beta Was this translation helpful? Give feedback.
1 reply
-
This discussion is being closed due to no activity in the last 14 days. You can reopen the discussion at any time if needed. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Team,
Not sure why but suddenly my code stopped working and giving me the error "Build APK with Flutter` exited with status code 1"
Can anyone help me resolve this?
usage: google-play [-h] [--log-stream {stderr,stdout}] [--no-color] [--version] [-s] [-v] {get-latest-build-number,tracks} ...
google-play: error: argument --credentials: Missing value CREDENTIALS. Provide it with argument --credentials, or set environment variable GCLOUD_SERVICE_ACCOUNT_CREDENTIALS
Running "flutter pub get" in clone...
Resolving dependencies...
args 2.3.1 (2.3.2 available)
collection 1.17.0 (1.17.1 available)
connectivity_plus 2.3.0 (3.0.2 available)
connectivity_plus_linux 1.3.0 (1.3.1 available)
connectivity_plus_macos 1.2.2 (1.2.6 available)
connectivity_plus_platform_interface 1.2.0 (1.2.3 available)
connectivity_plus_web 1.2.0 (1.2.5 available)
connectivity_plus_windows 1.2.0 (1.2.2 available)
cupertino_icons 1.0.4 (1.0.5 available)
dbus 0.7.3 (0.7.8 available)
ffi 1.1.2 (2.0.1 available)
file 6.1.2 (6.1.4 available)
flutter_downloader 1.7.3 (1.10.1+2 available)
flutter_inappwebview 5.3.2 (5.7.2+3 available)
flutter_lints 1.0.4 (2.0.1 available)
flutter_svg 1.0.3 (1.1.6 available)
js 0.6.5 (0.6.7 available)
lints 1.0.1 (2.0.1 available)
matcher 0.12.13 (0.12.14 available)
meta 1.8.0 (1.9.0 available)
mime 1.0.1 (1.0.4 available)
modal_bottom_sheet 2.0.1 (2.1.2 available)
onesignal_flutter 3.3.0 (3.5.0 available)
path 1.8.2 (1.8.3 available)
path_drawing 1.0.0 (1.0.1 available)
path_parsing 1.0.0 (1.0.1 available)
path_provider 2.0.9 (2.0.12 available)
path_provider_android 2.0.12 (2.0.22 available)
path_provider_ios 2.0.8 (2.0.11 available)
path_provider_linux 2.1.5 (2.1.7 available)
path_provider_macos 2.0.5 (2.0.7 available)
path_provider_platform_interface 2.0.3 (2.0.5 available)
path_provider_windows 2.0.5 (2.1.3 available)
permission_handler 9.2.0 (10.2.0 available)
permission_handler_android 9.0.2+1 (10.2.0 available)
permission_handler_apple 9.0.4 (9.0.7 available)
permission_handler_platform_interface 3.7.0 (3.9.0 available)
permission_handler_windows 0.1.0 (0.1.2 available)
petitparser 4.4.0 (5.1.0 available)
plugin_platform_interface 2.1.2 (2.1.3 available)
share_plus 4.0.3 (6.3.0 available)
share_plus_linux 3.0.0 (3.0.1 available)
share_plus_macos 3.0.0 (3.0.1 available)
share_plus_platform_interface 3.0.2 (3.2.0 available)
share_plus_web 3.0.0 (3.1.0 available)
share_plus_windows 3.0.0 (4.0.0 available)
test_api 0.4.16 (0.4.18 available)
url_launcher 6.0.20 (6.1.8 available)
url_launcher_android 6.0.15 (6.0.23 available)
url_launcher_ios 6.0.15 (6.0.18 available)
url_launcher_linux 3.0.0 (3.0.2 available)
url_launcher_macos 3.0.0 (3.0.2 available)
url_launcher_platform_interface 2.0.5 (2.1.1 available)
url_launcher_web 2.0.9 (2.0.14 available)
url_launcher_windows 3.0.0 (3.0.3 available)
win32 2.5.1 (4.1.1 available)
xdg_directories 0.2.0+1 (0.2.0+3 available)
xml 5.3.1 (6.2.2 available)
Got dependencies!
💪 Building with sound null safety 💪
Running Gradle task 'assembleRelease'...
Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/03 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/03 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/03 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/03 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/03 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/03 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
Warning: unexpected element (uri:"", local:"extension-level"). Expected elements are <{}codename>,<{}layoutlib>,<{}api-level>
Warning: unexpected element (uri:"", local:"base-extension"). Expected elements are <{}codename>,<{}layoutlib>,<{}api-level>
../programs/flutter/.pub-cache/hosted/pub.dev/modal_bottom_sheet-2.0.1/lib/src/material_with_modal_page_route.dart:4:1: Error: 'ModalBottomSheetRoute' is imported from both 'package:flutter/src/material/bottom_sheet.dart' and 'package:modal_bottom_sheet/src/bottom_sheet_route.dart'.
import '../modal_bottom_sheet.dart';
^^^^^^^^^^^^^^^^^^^^^
../programs/flutter/.pub-cache/hosted/pub.dev/file-6.1.2/lib/src/interface/file.dart:15:16: Error: The method 'File.create' has fewer named arguments than those of overridden method 'File.create'.
Future create({bool recursive = false});
^
org-dartlang-sdk:///third_party/dart/sdk/lib/io/file.dart:232:16: Context: This is the overridden method ('create').
Future create({bool recursive = false, bool exclusive = false});
^
../programs/flutter/.pub-cache/hosted/pub.dev/file-6.1.2/lib/src/interface/file.dart:15:16: Error: The method 'File.create' doesn't have the named parameter 'exclusive' of overridden method 'File.create'.
Future create({bool recursive = false});
^
org-dartlang-sdk:///third_party/dart/sdk/lib/io/file.dart:232:16: Context: This is the overridden method ('create').
Future create({bool recursive = false, bool exclusive = false});
^
../programs/flutter/.pub-cache/hosted/pub.dev/file-6.1.2/lib/src/forwarding/forwarding_file.dart:22:8: Error: The method 'ForwardingFile.createSync' has fewer named arguments than those of overridden method 'File.createSync'.
void createSync({bool recursive = false}) =>
^
org-dartlang-sdk:///third_party/dart/sdk/lib/io/file.dart:248:8: Context: This is the overridden method ('createSync').
void createSync({bool recursive = false, bool exclusive = false});
^
../programs/flutter/.pub-cache/hosted/pub.dev/file-6.1.2/lib/src/forwarding/forwarding_file.dart:22:8: Error: The method 'ForwardingFile.createSync' doesn't have the named parameter 'exclusive' of overridden method 'File.createSync'.
void createSync({bool recursive = false}) =>
^
org-dartlang-sdk:///third_party/dart/sdk/lib/io/file.dart:248:8: Context: This is the overridden method ('createSync').
void createSync({bool recursive = false, bool exclusive = false});
^
../programs/flutter/.pub-cache/hosted/pub.dev/modal_bottom_sheet-2.0.1/lib/src/bottom_sheets/material_bottom_sheet.dart:28:13: Error: 'ModalBottomSheetRoute' is imported from both 'package:flutter/src/material/bottom_sheet.dart' and 'package:modal_bottom_sheet/src/bottom_sheet_route.dart'.
.push(ModalBottomSheetRoute(
^^^^^^^^^^^^^^^^^^^^^
../programs/flutter/.pub-cache/hosted/pub.dev/modal_bottom_sheet-2.0.1/lib/src/bottom_sheets/material_bottom_sheet.dart:50:10: Error: A value of type 'Object?' can't be returned from an async function with return type 'Future<T?>'.
return result;
^
../programs/flutter/.pub-cache/hosted/pub.dev/modal_bottom_sheet-2.0.1/lib/src/bottom_sheets/bar_bottom_sheet.dart:96:13: Error: 'ModalBottomSheetRoute' is imported from both 'package:flutter/src/material/bottom_sheet.dart' and 'package:modal_bottom_sheet/src/bottom_sheet_route.dart'.
.push(ModalBottomSheetRoute(
^^^^^^^^^^^^^^^^^^^^^
../programs/flutter/.pub-cache/hosted/pub.dev/modal_bottom_sheet-2.0.1/lib/src/bottom_sheets/bar_bottom_sheet.dart:117:10: Error: A value of type 'Object?' can't be returned from an async function with return type 'Future<T?>'.
return result;
^
Target kernel_snapshot failed: Exception
FAILURE: Build failed with an exception.
Where:
Script '/Users/builder/programs/flutter/packages/flutter_tools/gradle/flutter.gradle' line: 1151
What went wrong:
Execution failed for task ':app:compileFlutterBuildRelease'.
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 1m 34s
Running Gradle task 'assembleRelease'... 96.3s
Gradle task assembleRelease failed with exit code 1
Build failed :|
Step 5 script
Build APK with Flutter
exited with status code 1Beta Was this translation helpful? Give feedback.
All reactions