codelab-android-workmanager icon indicating copy to clipboard operation
codelab-android-workmanager copied to clipboard

Save worker issue

Open alleviatelife opened this issue 3 years ago • 1 comments

The state of "workInfo" is "FAILED".It is failing for SaveImageToFileWorker in the master branch code.

WorkInfo{mId='47548a1e-bb23-4c98-8ced-c260057f4e18', mState=FAILED, mOutputData=Data {}, mTags=[OUTPUT,com.example.background.workers.SaveImageToFileWorker Screenshot 2022-10-27 at 8 52 16 PM

alleviatelife avatar Oct 27 '22 15:10 alleviatelife

The state of "workInfo" is "FAILED".It is failing for SaveImageToFileWorker in the master branch code.

WorkInfo{mId='47548a1e-bb23-4c98-8ced-c260057f4e18', mState=FAILED, mOutputData=Data {}, mTags=[OUTPUT,com.example.background.workers.SaveImageToFileWorker Screenshot 2022-10-27 at 8 52 16 PM

check the logcat. that's a permission issue. the solution is to make runtime permission about WRITE_EXTERNAL_STORAGE

Kakaranara avatar Nov 10 '22 03:11 Kakaranara