fluttercommunity / flutter_contacts

Contacts Service - A Flutter plugin to retrieve and manage contacts on Android and iOS devices. Maintainer: @lukasgit
https://pub.dev/packages/contacts_service
MIT License
153 stars 69 forks source link

Fixed build errors for Android & iOS #69

Closed lukasgit closed 5 years ago

lukasgit commented 5 years ago

Doctor summary:

[✓] Flutter (Channel stable, v1.2.1, on Mac OS X, locale en-US) [✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3) [✓] iOS toolchain - develop for iOS devices (Xcode 10.1)

Android bug:

FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':permission_handler'.

Solution

1. rm example/android/gradlew example/android/gradlew.bat
2. re-run example app flutter run command

iOS bug:

Deleting the example app on the Apple device, then performing a new build, will sometimes produce the following error:

Xcode build done.                                           38.6s
Oops; flutter has exited unexpectedly.
Sending crash report to Google.
## exception
ProcessException: ProcessException: Process "/usr/bin/xcrun" exited abnormally:
An error was encountered processing the command (domain=IXUserPresentableErrorDomain, code=1):
This app could not be installed at this time.

Solution

1. Re-run the flutter run command

Note: flutter clean was tested but does not resolve the issue. This is a reproducible bug.