bluelinelabs / Conductor

A small, yet full-featured framework that allows building View-based Android applications
Apache License 2.0
3.9k stars 343 forks source link

No virtual method startIntentSenderForResult on Android 5.1.1 #630

Closed shalva97 closed 4 years ago

shalva97 commented 4 years ago

Few months ago I made a map that would show stuff. Also it needed location, which i added it few month ago. Dont remmember why but I used startIntentSenderForResult function to receive onActivityResult. It works fine on new devices but it fails on Android 5.1.1.

this is the error:

11-11 18:32:42.510 5092-5092/com.halyk.mobileapp.dev.wandio E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.halyk.mobileapp.dev.wandio, PID: 5092
    java.lang.NoSuchMethodError: No virtual method startIntentSenderForResult(Landroid/content/IntentSender;ILandroid/content/Intent;IIILandroid/os/Bundle;)V in class Lcom/bluelinelabs/conductor/internal/LifecycleHandler; or its super classes (declaration of 'com.bluelinelabs.conductor.internal.LifecycleHandler' appears in /data/app/com.halyk.mobileapp.dev.wandio-1/base.apk)
        at com.bluelinelabs.conductor.internal.LifecycleHandler.startIntentSenderForResult(LifecycleHandler.java:307)
        at com.bluelinelabs.conductor.ActivityHostedRouter.startIntentSenderForResult(ActivityHostedRouter.java:95)
        at com.bluelinelabs.conductor.ControllerHostedRouter.startIntentSenderForResult(ControllerHostedRouter.java:160)
        at com.bluelinelabs.conductor.Controller.startIntentSenderForResult(Controller.java:533)
        at com.halyk.mobileapp.info.presentation.bank_branches.list.BankBranchListScreen$updateLocation$1$2.onFailure(BankBranchListScreen.kt:112)
        at com.google.android.gms.tasks.zzl.run(Unknown Source)
        at android.os.Handler.handleCallback(Handler.java:739)
        at android.os.Handler.dispatchMessage(Handler.java:95)
        at android.os.Looper.loop(Looper.java:135)
        at android.app.ActivityThread.main(ActivityThread.java:5254)
        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:903)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)