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.IllegalAccessException #96

Open
carlosgorillalogic opened this issue Nov 24, 2022 · 0 comments
Open

java.lang.IllegalAccessException #96

carlosgorillalogic opened this issue Nov 24, 2022 · 0 comments

Comments

@carlosgorillalogic
Copy link

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.

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

1 participant