Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.IllegalArgumentException: Unsupported value: Result(isSuccessful=true, region=null, data=true, error=null) #19

Open
indiluk opened this issue Aug 23, 2018 · 1 comment

Comments

@indiluk
Copy link

indiluk commented Aug 23, 2018

When we try to use requestPermission function the Android app crashes with the following error log. iOS works just fine.

await Beacons.requestPermission(
  new LocationPermission(
    ios: LocationPermissionIOS.always, 
    android: LocationPermissionAndroid.fine
 )
);

E/AndroidRuntime: FATAL EXCEPTION: main Process: at.pluscity.PlusCity, PID: 7565 java.lang.IllegalArgumentException: Unsupported value: Result(isSuccessful=true, region=null, data=true, error=null) at io.flutter.plugin.common.StandardMessageCodec.writeValue(StandardMessageCodec.java:293) at io.flutter.plugin.common.StandardMethodCodec.encodeSuccessEnvelope(StandardMethodCodec.java:57) at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler$1.success(MethodChannel.java:194) at io.intheloup.beacons.channel.Channels$requestPermission$1.doResume(Channels.kt:54) at kotlin.coroutines.experimental.jvm.internal.CoroutineImpl.resume(CoroutineImpl.kt:42) at kotlinx.coroutines.experimental.DispatchedTask$DefaultImpls.run(Dispatched.kt:161) at kotlinx.coroutines.experimental.DispatchedContinuation.run(Dispatched.kt:25) at android.os.Handler.handleCallback(Handler.java:739) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:145) at android.app.ActivityThread.main(ActivityThread.java:6934) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1404) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1199)

@indiluk indiluk changed the title Illegal argument exception java.lang.IllegalArgumentException: Unsupported value: Result(isSuccessful=true, region=null, data=true, error=null) Aug 24, 2018
@vinceramcesoliveros
Copy link

Use it on Beacon.ranging(permission: LocationPermissionAndroid.course)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants