Coder Social home page Coder Social logo

Comments (8)

chillaq avatar chillaq commented on July 26, 2024

Thanks Stephan for the info, will check it and get back to you

from android-client.

stephen1706 avatar stephen1706 commented on July 26, 2024

@chillaq thanks. to add more information about this, I call the SplitFactoryBuilder.build during Application.onCreate, and my application class does not explicitly implement Configuration.Provider.
mozilla-mobile/reference-browser#525 (comment)
I can repro the bug by running a robolectric test case which call my refreshInstance method, then it will show the same error.
Complete stacktrace:

java.lang.IllegalStateException: WorkManager is not initialized properly.  You have explicitly disabled WorkManagerInitializer in your manifest, have not manually called WorkManager#initialize at this point, and your Application does not implement Configuration.Provider.

	at androidx.work.impl.WorkManagerImpl.getInstance(WorkManagerImpl.java:146)
	at androidx.work.WorkManager.getInstance(WorkManager.java:181)
	at io.split.android.client.SplitFactoryHelper.buildWorkManagerWrapper(SplitFactoryHelper.java:94)
	at io.split.android.client.SplitFactoryImpl.<init>(SplitFactoryImpl.java:148)
	at io.split.android.client.SplitFactoryImpl.<init>(SplitFactoryImpl.java:80)
	at io.split.android.client.SplitFactoryBuilder.build(SplitFactoryBuilder.java:67)

from android-client.

stephen1706 avatar stephen1706 commented on July 26, 2024

@chillaq actually it is not device specific, it happens on all device

from android-client.

stephen1706 avatar stephen1706 commented on July 26, 2024

@chillaq I manage to resolve the issue, turns out the SplitFactoryBuilder is called before Application.onCreate which causes the issue

from android-client.

chillaq avatar chillaq commented on July 26, 2024

Thanks Stephan, I will create a KB fo this issue.

from android-client.

hbb20 avatar hbb20 commented on July 26, 2024

@stephen1706 Need your help. I am facing similar issue. You mentioned that I call the SplitFactoryBuilder.build during Application.onCreate but later you said that SplitFactoryBuilder is called before Application.onCreate. I did not understood that. I am facing similar issue where it's created in onCreate() through dagger. How did you solve this?

from android-client.

kareem12599 avatar kareem12599 commented on July 26, 2024

Hey, @stephen1706 and @hbb20 I'm facing the same issue, any updates about how to solve it?

from android-client.

hbb20 avatar hbb20 commented on July 26, 2024

Didn't find any solution so far. Still see issue reported in Firebase.

from android-client.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.