Closed olaray closed 6 years ago
please add the output of flutter doctor
[✓] Flutter (Channel beta, v0.4.4, on Mac OS X 10.13.4 17E202, locale en-NG) • Flutter version 0.4.4 at /Users/Zone1/Downloads/flutter • Framework revision f9bb4289e9 (4 weeks ago), 2018-05-11 21:44:54 -0700 • Engine revision 06afdfe54e • Dart version 2.0.0-dev.54.0.flutter-46ab040e58
[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3) • Android SDK at /Users/Zone1/Library/Android/sdk • Android NDK location not configured (optional; useful for native profiling support) • Platform android-27, build-tools 27.0.3 • ANDROID_HOME = /Users/Zone1/Library/Android/sdk • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01) • All Android licenses accepted.
[✓] iOS toolchain - develop for iOS devices (Xcode 9.3) • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 9.3, Build version 9E145 • ios-deploy 1.9.2 • CocoaPods version 1.5.0
[✓] Android Studio (version 3.1) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin version 24.0.1 • Dart plugin version 173.4700 • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
[✓] VS Code (version 1.23.1) • VS Code at /Applications/Visual Studio Code.app/Contents • Dart Code extension version 2.12.1
[✓] Connected devices (2 available) • SM C9000 • a5a85845 • android-arm64 • Android 7.1.1 (API 25) • iPhone X • 52A0626F-AF0E-41E2-8BBA-AC49F2433C2A • ios • iOS 11.3 (simulator)
• No issues found!
And you are you using the latest plugin version?
Yes I am. The version i am using is contacts_service: "^0.0.6"
Same to me
[✓] Flutter (Channel beta, v0.4.4, on Linux, locale en_US.UTF-8) • Flutter version 0.4.4 at /home/erik/projects/flutter/flutter • Framework revision f9bb4289e9 (5 weeks ago), 2018-05-11 21:44:54 -0700 • Engine revision 06afdfe54e • Dart version 2.0.0-dev.54.0.flutter-46ab040e58
[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3) • Android SDK at /home/erik/Android/Sdk • Android NDK location not configured (optional; useful for native profiling support) • Platform android-27, build-tools 27.0.3 • Java binary at: /home/erik/projects/android-studio/jre/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01) • All Android licenses accepted.
[✓] Android Studio (version 3.1) • Android Studio at /home/erik/projects/android-studio • Flutter plugin version 23.1.2 • Dart plugin version 173.4700 • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
[!] VS Code (version 1.24.1) • VS Code at /usr/share/code • Dart Code extension not installed; install from https://marketplace.visualstudio.com/items?itemName=Dart-Code.dart-code
[✓] Connected devices (1 available) • F5321 • BH901GN05Z • android-arm64 • Android 8.0.0 (API 26)
! Doctor found issues in 1 category.
is there any progress ?
I created a PR on this already...
this issue happens when the function called for the sceond time (when i install the package for the first time it runs well, however when trying to run get contacts later this issue seems to happen )
Shutting down VM E/AndroidRuntime( 6142): FATAL EXCEPTION: main E/AndroidRuntime( 6142): Process: com.cloudsoft.pecards, PID: 6142 E/AndroidRuntime( 6142): java.lang.IllegalStateException: Reply already submitted E/AndroidRuntime( 6142): at io.flutter.view.FlutterNativeView$1.reply(FlutterNativeView.java:176) E/AndroidRuntime( 6142): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler$1.success(MethodChannel.java:194) E/AndroidRuntime( 6142): at flutter.plugins.contactsservice.contactsservice.ContactsServicePlugin$GetContactsTask.onPostExecute(ContactsServicePlugin.java:134) E/AndroidRuntime( 6142): at flutter.plugins.contactsservice.contactsservice.ContactsServicePlugin$GetContactsTask.onPostExecute(ContactsServicePlugin.java:115) E/AndroidRuntime( 6142): at android.os.AsyncTask.finish(AsyncTask.java:667) E/AndroidRuntime( 6142): at android.os.AsyncTask.-wrap1(AsyncTask.java) E/AndroidRuntime( 6142): at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:684) E/AndroidRuntime( 6142): at android.os.Handler.dispatchMessage(Handler.java:102) E/AndroidRuntime( 6142): at android.os.Looper.loop(Looper.java:163) E/AndroidRuntime( 6142): at android.app.ActivityThread.main(ActivityThread.java:6383) E/AndroidRuntime( 6142): at java.lang.reflect.Method.invoke(Native Method) E/AndroidRuntime( 6142): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:904) E/AndroidRuntime( 6142): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:794)
Running flutter doctor: Doctor summary (to see all details, run flutter doctor -v): [√] Flutter (Channel dev, v0.5.8, on Microsoft Windows [Version 10.0.17134.165], locale en-US) [√] Android toolchain - develop for Android devices (Android SDK 27.0.3) [√] Android Studio (version 3.1) [√] VS Code, 64-bit edition (version 1.26.1) [√] Connected devices (1 available)
the plugin version is contacts_service: ^0.0.8
Same goes for me. Using ^0.0.8. Android crashes immediately. iOS not even building. Saying that it requires an older version of Swift.
@olaray @b-connect @osamagamal65 It's working. For iOS, you need to create flutter project like this => flutter create -i swift your_app_name. In android if it's crashing, just go to android settings and enable the contacts permission in app management. You need to integrate a permissions plugin in the app in order to get permission through code.
D/AndroidRuntime(11912): Shutting down VM E/AndroidRuntime(11912): FATAL EXCEPTION: main E/AndroidRuntime(11912): Process: com.appzonegroup.zone, PID: 11912 E/AndroidRuntime(11912): java.lang.IllegalStateException: Reply already submitted E/AndroidRuntime(11912): at io.flutter.view.FlutterNativeView$1.reply(FlutterNativeView.java:146) E/AndroidRuntime(11912): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler$1.success(MethodChannel.java:194) E/AndroidRuntime(11912): at flutter.plugins.contactsservice.contactsservice.ContactsServicePlugin$GetContactsTask.onPostExecute(ContactsServicePlugin.java:134) E/AndroidRuntime(11912): at flutter.plugins.contactsservice.contactsservice.ContactsServicePlugin$GetContactsTask.onPostExecute(ContactsServicePlugin.java:115) E/AndroidRuntime(11912): at android.os.AsyncTask.finish(AsyncTask.java:667) E/AndroidRuntime(11912): at android.os.AsyncTask.-wrap1(AsyncTask.java) E/AndroidRuntime(11912): at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:684) E/AndroidRuntime(11912): at android.os.Handler.dispatchMessage(Handler.java:102) E/AndroidRuntime(11912): at android.os.Looper.loop(Looper.java:154) E/AndroidRuntime(11912): at android.app.ActivityThread.main(ActivityThread.java:6816) E/AndroidRuntime(11912): at java.lang.reflect.Method.invoke(Native Method) E/AndroidRuntime(11912): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1563) E/AndroidRuntime(11912): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1451)