rishabnayak / firebase_mlkit_language

Firebase ML Kit Language Plugin for Flutter
BSD 3-Clause "New" or "Revised" License
18 stars 21 forks source link

Fails to build - Gradle task assembleRelease failed with exit Code 1 #32

Closed vikramkapoor closed 5 years ago

vikramkapoor commented 5 years ago

"flutter build apk -v" fails with the following error when I try to build the example. There are no errors in my flutter doctor output (at the bottom).

[ +3 ms] "flutter apk" took 60,800ms. Gradle task assembleRelease failed with exit code 1

0 throwToolExit (package:flutter_tools/src/base/common.dart:28:3)

1 _buildGradleProjectV2 (package:flutter_tools/src/android/gradle.dart:751:5)

#2 buildGradleProject (package:flutter_tools/src/android/gradle.dart:494:14) #3 buildApk (package:flutter_tools/src/android/apk.dart:34:9) #4 BuildApkCommand.runCommand (package:flutter_tools/src/commands/build_apk.dart:79:11) #5 FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:490:18) #6 _asyncThenWrapperHelper. (dart:async-patch/async_patch.dart:71:64) #7 _rootRunUnary (dart:async/zone.dart:1132:38) #8 _CustomZone.runUnary (dart:async/zone.dart:1029:19) #9 _FutureListener.handleValue (dart:async/future_impl.dart:137:18) #10 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:678:45) #11 Future._propagateToListeners (dart:async/future_impl.dart:707:32) #12 Future._completeWithValue (dart:async/future_impl.dart:522:5) #13 Future._asyncComplete. (dart:async/future_impl.dart:552:7) #14 _rootRun (dart:async/zone.dart:1124:13) #15 _CustomZone.run (dart:async/zone.dart:1021:19) #16 _CustomZone.runGuarded (dart:async/zone.dart:923:7) #17 _CustomZone.bindCallbackGuarded. (dart:async/zone.dart:963:23) #18 _microtaskLoop (dart:async/schedule_microtask.dart:41:21) #19 _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5) #20 _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:116:13) #21 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:173:5) flutter doctor Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel stable, v1.9.1+hotfix.6, on Mac OS X 10.15.1 19B88, locale en-US) [✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2) [✓] Xcode - develop for iOS and macOS (Xcode 11.2) [✓] Android Studio (version 3.5) [✓] Connected device (1 available) • No issues found!
vikramkapoor commented 5 years ago

Adding my own google_services.json under example/android/app fixed the issue for me.