Skip to content

java.lang.IllegalAccessException #96

@carlosgorillalogic

Description

@carlosgorillalogic

Device: Google Pixel 4a, Android 13.

When enable detectIncorrectContextUse, I got the following error:

Tried to access the API:ViewConfiguration which needs to have proper configuration from a non-UI Context:com.jdsports.app.App@837c523 The API:ViewConfiguration needs a proper configuration. Use UI contexts such as an activity or a context created via createWindowContext(Display, int, Bundle) or createConfigurationContext(Configuration) with a proper configuration.
java.lang.IllegalAccessException: Tried to access the API:ViewConfiguration which needs to have proper configuration from a non-UI Context:<>.App@837c523
at android.os.StrictMode.assertConfigurationContext(StrictMode.java:2295)
at android.view.ViewConfiguration.get(ViewConfiguration.java:526)
at android.view.View.(View.java:5366)
at android.view.View.(View.java:5511)
at android.view.ViewGroup.(ViewGroup.java:703)
at android.widget.AbsoluteLayout.(AbsoluteLayout.java:56)
at android.webkit.WebView.(WebView.java:421)
at android.webkit.WebView.(WebView.java:363)
at android.webkit.WebView.(WebView.java:345)
at android.webkit.WebView.(WebView.java:332)
at android.webkit.WebView.(WebView.java:322)
at com.tealium.internal.dispatcher.WebViewDispatcher$b.run(WebViewDispatcher.java:5)
at android.os.Handler.handleCallback(Handler.java:942)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:201)
at android.os.Looper.loop(Looper.java:288)
at android.app.ActivityThread.main(ActivityThread.java:7898)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)

It seems like Tealium.Config.create does not like the application context.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions