반응형
상황
WorkManager에 workrequest을 enqueue했는데 오류 뿜음
원인
worker를 inner class로 작성하면 안 됨
해결
worker class 별도 분리
참고
[Android] WorkManager 'Could not instantiate Worker' 해결법
Android JetPack Component 에 'WorkManager' 라는 친구가 있다. 초기 안드로이드는 백그라운드 실행 정책이 느슨했기 때문에 여러 앱이 각자 백그라운드 태스크를 수행하면서 스마트폰의 자원을 엄청 소비
haero.tistory.com
https://stackoverflow.com/questions/52657196/android-work-manager-could-not-instantiate-worker
Android Work Manager: "Could not instantiate Worker"
I've followed the Android Developer's tutorial on using the Worker Manager structure to run my code in background but anytime I try to enqueue my worker it doesn't run and I get the following error:
stackoverflow.com
반응형