LocationClientHelper: exception when setting module id

0

Good evening guys, I'm at the end of my application, but I'm going through a problem that I have no idea how to solve since 2 days I've been working on it.

After implementing a sdk of Ads (AppLovin) I noticed that this failure started, due to the Ads provider needing the location to redirect Ads.

The app works perfectly just by looping on this location error as if it were all the time looking for the location and always returning:

    11-30 21:02:14.693 18085-18294/? W/Ads: Not retrying to fetch app settings
11-30 21:02:14.693 18085-18121/? W/Ads: Not retrying to fetch app settings
11-30 21:02:14.703 18085-18107/? D/FA: Logging event (FE): screen_view(_vs), Bundle[{firebase_event_origin(_o)=auto, firebase_previous_class(_pc)=main, firebase_previous_id(_pi)=338065512113923932, firebase_screen_class(_sc)=result, firebase_screen_id(_si)=338065512113923936}]
11-30 21:02:14.713 1998-2239/com.google.android.gms.persistent W/GCoreFlp: No location to return for getLastLocation()
11-30 21:02:14.723 2334-2334/com.google.android.gms E/LocationClientHelper: exception when setting module id
    java.lang.IllegalStateException: Unable to get current module info in ModuleManager created with non-module Context
        at com.google.android.chimera.config.ModuleManager.getCurrentModule(:com.google.android.gms@[email protected] (000700-219897028):2)
        at ypf.a(:com.google.android.gms@[email protected] (000700-219897028):14)
        at ypj.a(:com.google.android.gms@[email protected] (000700-219897028):14)
        at yoe.a(:com.google.android.gms@[email protected] (000700-219897028):5)
        at mgq.b(:com.google.android.gms@[email protected] (000700-219897028):3)
        at mhn.b(:com.google.android.gms@[email protected] (000700-219897028):11)
        at mij.b(:com.google.android.gms@[email protected] (000700-219897028):7)
        at mib.b(:com.google.android.gms@[email protected] (000700-219897028):47)
        at yob.a(:com.google.android.gms@[email protected] (000700-219897028):13)
        at com.google.android.gms.ads.location.d.a_(:com.google.android.gms@[email protected] (000700-219897028):9)
        at mwm.a(:com.google.android.gms@[email protected] (000700-219897028):22)
        at mib.a(:com.google.android.gms@[email protected] (000700-219897028):66)
        at mhp.g(:com.google.android.gms@[email protected] (000700-219897028):11)
        at mhp.a(:com.google.android.gms@[email protected] (000700-219897028):36)
        at mij.a_(:com.google.android.gms@[email protected] (000700-219897028):2)
        at mhb.a_(:com.google.android.gms@[email protected] (000700-219897028))
        at mwk.a(:com.google.android.gms@[email protected] (000700-219897028):2)
        at mve.a(:com.google.android.gms@[email protected] (000700-219897028):16)
        at muv.a(:com.google.android.gms@[email protected] (000700-219897028):7)
        at muy.handleMessage(:com.google.android.gms@[email protected] (000700-219897028):32)
        at android.os.Handler.dispatchMessage(Handler.java:102)
        at yil.a(:com.google.android.gms@[email protected] (000700-219897028):3)
        at nlg.a(:com.google.android.gms@[email protected] (000700-219897028):38)
        at yil.dispatchMessage(:com.google.android.gms@[email protected] (000700-219897028):3)
        at android.os.Looper.loop(Looper.java:136)
        at android.app.ActivityThread.main(ActivityThread.java:5021)
        at java.lang.reflect.Method.invokeNative(Native Method)
        at java.lang.reflect.Method.invoke(Method.java:515)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:827)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:643)
        at dalvik.system.NativeStart.main(Native Method)
11-30 21:02:14.743 1998-2239/com.google.android.gms.persistent W/GCoreFlp: No location to return for getLastLocation()
11-30 21:02:14.743 1998-2239/com.google.android.gms.persistent W/GCoreFlp: No location to return for getLastLocation()
11-30 21:02:14.763 1998-2239/com.google.android.gms.persistent W/GCoreFlp: No location to return for getLastLocation()
11-30 21:02:14.763 2334-18335/com.google.android.gms D/dalvikvm: GC_FOR_ALLOC freed 4279K, 34% free 14595K/21924K, paused 33ms, total 34ms
11-30 21:02:14.793 2334-17921/com.google.android.gms V/FA-SVC: Logging event: origin=app,name=select_content,params=Bundle[{item_name=Activity, firebase_event_origin(_o)=app, content_type=image, item_id=Anuncios}]
11-30 21:02:14.803 1998-2009/com.google.android.gms.persistent D/dalvikvm: GC_FOR_ALLOC freed 3043K, 24% free 9878K/12988K, paused 32ms, total 33ms
11-30 21:02:14.813 1998-2239/com.google.android.gms.persistent W/GCoreFlp: No location to return for getLastLocation()
11-30 21:02:14.813 2334-2334/com.google.android.gms E/LocationClientHelper: exception when setting module id
    java.lang.IllegalStateException: Unable to get current module info in ModuleManager created with non-module Context
        at com.google.android.chimera.config.ModuleManager.getCurrentModule(:com.google.android.gms@[email protected] (000700-219897028):2)
        at ypf.a(:com.google.android.gms@[email protected] (000700-219897028):14)
        at ypj.a(:com.google.android.gms@[email protected] (000700-219897028):14)
        at yoe.a(:com.google.android.gms@[email protected] (000700-219897028):5)
        at mgq.b(:com.google.android.gms@[email protected] (000700-219897028):3)
        at mhn.b(:com.google.android.gms@[email protected] (000700-219897028):11)
        at mij.b(:com.google.android.gms@[email protected] (000700-219897028):7)
        at mib.b(:com.google.android.gms@[email protected] (000700-219897028):47)
        at yob.a(:com.google.android.gms@[email protected] (000700-219897028):13)
        at com.google.android.gms.ads.location.d.a_(:com.google.android.gms@[email protected] (000700-219897028):9)
        at mwm.a(:com.google.android.gms@[email protected] (000700-219897028):22)
        at mib.a(:com.google.android.gms@[email protected] (000700-219897028):66)
        at mhp.g(:com.google.android.gms@[email protected] (000700-219897028):11)
        at mhp.a(:com.google.android.gms@[email protected] (000700-219897028):36)
        at mij.a_(:com.google.android.gms@[email protected] (000700-219897028):2)
        at mhb.a_(:com.google.android.gms@[email protected] (000700-219897028))
        at mwk.a(:com.google.android.gms@[email protected] (000700-219897028):2)
        at mve.a(:com.google.android.gms@[email protected] (000700-219897028):16)
        at muv.a(:com.google.android.gms@[email protected] (000700-219897028):7)
        at muy.handleMessage(:com.google.android.gms@[email protected] (000700-219897028):32)
        at android.os.Handler.dispatchMessage(Handler.java:102)
        at yil.a(:com.google.android.gms@[email protected] (000700-219897028):3)
        at nlg.a(:com.google.android.gms@[email protected] (000700-219897028):38)
        at yil.dispatchMessage(:com.google.android.gms@[email protected] (000700-219897028):3)
        at android.os.Looper.loop(Looper.java:136)
        at android.app.ActivityThread.main(ActivityThread.java:5021)
        at java.lang.reflect.Method.invokeNative(Native Method)
        at java.lang.reflect.Method.invoke(Method.java:515)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:827)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:643)
        at dalvik.system.NativeStart.main(Native Method)
11-30 21:02:14.823 1998-2239/com.google.android.gms.persistent W/GCoreFlp: No location to return for getLastLocation()
11-30 21:02:14.823 1998-2239/com.google.android.gms.persistent W/GCoreFlp: No location to return for getLastLocation()
11-30 21:02:14.833 1998-2239/com.google.android.gms.persistent W/GCoreFlp: No location to return for getLastLocation()

It stays in an eternal loop of this message which ends up leaving the app very slow.

I have tried to give the location permissions and still give error Implement google services locations as well and nothing the problem solves.

Would anyone have any ideas?

I do not think you have the need to show the code since it only has AdMob ad calls.

    
asked by anonymous 01.12.2018 / 00:35

0 answers