Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

E/ModuleIdSetter: exception when setting module id. What does this error mean?

I was building an app on android studio and encountered this error E/ModuleIdSetter: exception when setting module id. I have no idea what this error is about and I would like to know what it is and how to resolve it. The full error is below.

2020-07-21 16:07:06.626 28147-28311/? E/ModuleIdSetter: 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] (120700-319035315):2)
        at aeua.a(:com.google.android.gms@[email protected] (120700-319035315):4)
        at aeud.b(:com.google.android.gms@[email protected] (120700-319035315):9)
        at aeql.a(Unknown Source:0)
        at rnb.a(:com.google.android.gms@[email protected] (120700-319035315):0)
        at rjk.c(:com.google.android.gms@[email protected] (120700-319035315):1)
        at rji.b(:com.google.android.gms@[email protected] (120700-319035315):1)
        at rlz.b(:com.google.android.gms@[email protected] (120700-319035315):6)
        at rlz.c(:com.google.android.gms@[email protected] (120700-319035315):6)
        at rlz.b(:com.google.android.gms@[email protected] (120700-319035315):10)
        at rlz.a(:com.google.android.gms@[email protected] (120700-319035315):17)
        at rlz.g(:com.google.android.gms@[email protected] (120700-319035315):3)
        at sbg.a(:com.google.android.gms@[email protected] (120700-319035315):2)
        at sag.a(:com.google.android.gms@[email protected] (120700-319035315):10)
        at rzx.a(:com.google.android.gms@[email protected] (120700-319035315):0)
        at saa.handleMessage(:com.google.android.gms@[email protected] (120700-319035315):28)
        at android.os.Handler.dispatchMessage(Handler.java:107)
        at aeiw.a(:com.google.android.gms@[email protected] (120700-319035315):2)
        at aeiw.dispatchMessage(:com.google.android.gms@[email protected] (120700-319035315):14)
        at android.os.Looper.loop(Looper.java:214)
        at android.os.HandlerThread.run(HandlerThread.java:67)
like image 773
Wang Xing Peng Avatar asked Jul 21 '20 08:07

Wang Xing Peng


People also ask

Why does the custom error module does not recognize this error?

It is common for users to come across the error that the custom error module does not recognize this error when trying to sign in to the Outlook mail. This issue often occurs with the shared mailbox folders that are using specially crafted web part URLs for Microsoft Outlook Web App.

What is an application error with an exception?

An Application Error with an exception is usually an access violation error that is caused by the system not being able to correctly process the files and settings that it requires to run a particular program or installation. You get the application error when you start a program in Windows or attempt to install a software.

How to delete cookies in Microsoft Edge to fix custom error module?

In order to fix the issue that the custom error module does not recognize this error, you can choose to delete cookies in Edge. Now, here is the tutorial. Open Microsoft Edge and then click Settings and More. Then click Settings. Select Privacy and Security. Click the Choose what to clear button.


Video Answer


1 Answers

System services not available to Activities before onCreate().

For example

This will throw an exception

private var audioManager = getSystemService(Context.AUDIO_SERVICE) as AudioManager

override fun onCreate(savedInstanceState: Bundle?) {
}

But, this won't

private lateinit var audioManager: AudioManager

override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)

audioManager = getSystemService(Context.AUDIO_SERVICE) as AudioManager  
}  
like image 70
Sahal Nazar Avatar answered Oct 17 '22 20:10

Sahal Nazar