应用在 downloadManager.enqueue

问题描述

我正在使用 DownloadManager 下载文件。除了操作系统版本为 7.0 的三星 S6 之外,它正在所有设备中运行。一旦 downloadManager.enqueue(request) 被执行,应用程序就会被杀死。检查日志没有崩溃的痕迹。一旦执行入队,我就不会在 onReceive 中收到回调。不知道入队后发生了什么。

SAGalleryContentObserver: onChanged - uri : content://media/external
SAGalleryContentObserver: uri not contain image - return
12-20 06:18:49.642  3693  3693 V UiModeManager: updateLocked: null action,mDockState=0,category=null
12-20 06:18:49.642  3693  3693 D UiModeManager: updateConfigurationLocked: mDockState=0; mCarMode=false; mNightMode=1; uiMode=17
12-20 06:18:49.643  3693  3693 D GameManagerService: new battery level: 100
12-20 06:18:49.645  4562  4562 D KeyguardUpdateMonitor: received broadcast android.intent.action.BATTERY_CHANGED
12-20 06:18:49.646  4562  4562 D KeyguardUpdateMonitor: handleBatteryUpdate
12-20 06:18:49.650  4562  4562 D PowerUI : showing power sharing dialogfalse
12-20 06:18:49.650  4562  4562 D PowerUI : priorPlugType = 2 mPlugType =  2
12-20 06:18:49.652  4562  4562 D BatteryMeterDrawable: isSomethingChanged - false
12-20 06:18:49.652  4562  4562 D BatteryMeterDrawable: isSomethingChanged - false
12-20 06:18:49.653  4562  4562 D Tile.FlashlightTile: ACTION_BATTERY_CHANGED - Level :: 100,emEnabled :: false
12-20 06:18:49.657  4976  4976 D PhoneApp: PhoneAppBroadcastReceiver onReceive android.intent.action.BATTERY_CHANGED
12-20 06:18:49.657  4976  4976 D TelephonyExtensionManager: lowBatterySound - isLowBatterySoundScheduled: false
12-20 06:18:49.657  4976  4976 D TelephonyExtensionManager: lowBatterySound - isPlayNow: false
12-20 06:18:49.658  4976  4976 D TelephonyExtensionManager: isSpeakerON - false
12-20 06:18:49.660  4500  4500 V HeadsetService: HeadsetService - Received Intent.ACTION_BATTERY_CHANGED
12-20 06:18:49.660  4500  7083 D HeadsetStateMachine: Disconnected process message: 10,size: 0
12-20 06:18:49.673  3693  7668 W ActivityManager: Unable to launch app com.android.providers.downloads/10045 for provider downloads: launching app became null
12-20 06:18:49.673  3693  3720 I ActivityManager: Killing 29141:com.xxxxx.xxxxxu0a357 (adj 0): depends on provider com.android.providers.downloads/.DownloadProvider in dying proc android.process.media (adj 0)
12-20 06:18:49.673 29141 30748 E ActivityThread: Failed to find provider info for downloads
12-20 06:18:49.674  3693 11955 W ActivityManager: Unable to launch app com.android.providers.media/10045 for provider media: launching app became null
12-20 06:18:49.674  3693  3720 I ActivityManager: Killing 30565:android.process.media/u0a45 (adj 0): timeout publishing content providers
12-20 06:18:49.675  3693  3720 D ActivityManager: cleanUpApplicationRecord -- 30565
12-20 06:18:49.675  3693  5026 W ActivityManager: Unable to launch app com.android.providers.media/10045 for provider media: launching app became null
12-20 06:18:49.675  3693  4284 W ActivityManager: Unable to launch app com.android.providers.media/10045 for provider media: launching app became null
12-20 06:18:49.675  3693  6686 W ActivityManager: Unable to launch app com.android.providers.media/10045 for provider media: launching app became null
12-20 06:18:49.676  3693  5923 W ActivityManager: Unable to launch app com.android.providers.media/10045 for provider media: launching app became null
12-20 06:18:49.676  9215 17075 E ActivityThread: Failed to find provider info for media
12-20 06:18:49.676 20288 20288 E ActivityThread: Failed to find provider info for media
12-20 06:18:49.676 20288 20288 E MTPPlaObsrvr: Cursor cur is null
12-20 06:18:49.676 25952 30594 E ActivityThread: Failed to find provider info for media
12-20 06:18:49.681 25952 25971 E ActivityThread: Failed to find provider info for media
12-20 06:18:49.682  3693  3720 W ActivityManager: Scheduling restart of crashed service com.android.providers.media/.MediaScannerService in 1000ms
12-20 06:18:49.688 17286 21261 E ActivityThread: Failed to find provider info for media
12-20 06:18:49.692 17286 21261 I GmscoreIpa: MediaStore query returned null cursor
12-20 06:18:49.706  3693 11956 D MountService: getExternalStorageMountMode : 1
12-20 06:18:49.707  3693 11956 D MountService: getExternalStorageMountMode : 3
12-20 06:18:49.707  3693 11956 D MountService: getExternalStorageMountMode : final mountMode=1,uid : 10045,packageName : com.android.providers.media
12-20 06:18:49.733 30752 30752 E Zygote  : v2
12-20 06:18:49.733 30752 30752 I libpersona: KNOX_SDCARD checking this for 10045
12-20 06:18:49.733 30752 30752 I libpersona: KNOX_SDCARD not a persona
12-20 06:18:49.733  3693 11956 I ActivityManager: Start proc 30752:android.process.media/u0a45 for content provider com.android.providers.media/.MediaProvider
12-20 06:18:49.735 30752 30752 E Zygote  : accessInfo : 0
12-20 06:18:49.736 30752 30752 W SELinux : SELinux selinux_android_compute_policy_index : Policy Index[2],Con:u:r:zygote:s0 RAM:SEPF_SECMOBILE_7.0_0009,[-1 -1 -1 -1 0 1]
12-20 06:18:49.739 30752 30752 I SELinux : SELinux: seapp_context_lookup: seinfo=media,level=s0:c512,c768,pkgname=android.process.media 
12-20 06:18:49.747  4976  4976 D TelephonyExtensionManager: lowBatterySound - batteryStatus: 5
12-20 06:18:49.748  4976  4976 D TelephonyExtensionManager: lowBatterySound - batteryLevel: 100
12-20 06:18:49.748  4976  4976 D TelephonyExtensionManager: lowBatterySound - cancel
12-20 06:18:49.748  3693  5771 D SamsungAlarmManager: Cancel Alarm calling from uid:1001 pid :4976 / op:PendingIntent{b8401f0: PendingIntentRecord{238ebd5 com.android.phone broadcastIntent}}
12-20 06:18:49.752  3693 11955 D SamsungAlarmManager: setInexact Intent (T:2/F:0/AC:false) 20201220T063229 - CU:10012/CP:5149
12-20 06:18:49.753  4976  4976 D TelephonyExtension: Not stopping low battery tone
12-20 06:18:49.753  5869 19719 D ForegroundUtils: could not check pending caller
12-20 06:18:49.763  3693  4284 D ConnectivityService: filterNetworkStateForUid() uid: 10012 networkInfo: [type: WIFI[] - WIFI,state: CONNECTED/CONNECTED,reason: (unspecified),extra: "EEGuest",failover: false,available: true,roaming: false,metered: false]
12-20 06:18:49.764  5149 23443 I NetworkScheduler.Stats: Task com.google.android.gms/com.google.android.gms.ipa.base.IpaGcmTaskService started execution. cause:5 exec_start_elapsed_seconds: 249680 [CONTEXT service_id=218 ]
12-20 06:18:49.765  3693  6722 D ConnectivityService: filterNetworkStateForUid() uid: 10012 networkInfo: [type: WIFI[] - WIFI,metered: false]
12-20 06:18:49.771  3693  5770 D SamsungAlarmManager: Cancel Alarm calling from uid:10012 pid :5149 / op:PendingIntent{f6c2369: PendingIntentRecord{66f51d0 com.google.android.gms broadcastIntent}}
12-20 06:18:49.778 30752 30752 D TimaKeyStoreProvider: TimaKeyStore is not enabled: cannot add TimaSignature Service and generateKeyPair Service
12-20 06:18:49.782  3693  5661 I ActivityManager: DSS on for com.android.providers.media and scale is 1.0
12-20 06:18:49.794  3693  6686 D SamsungAlarmManager: setInexact Intent (T:2/F:0/AC:false) 20201220T063229 - CU:10012/CP:5149
12-20 06:18:49.803  3693  7667 D ConnectivityService: filterNetworkStateForUid() uid: 10012 networkInfo: [type: WIFI[] - WIFI,metered: false]
12-20 06:18:49.804  5149 23443 I NetworkScheduler.Stats: Task com.google.android.gms/com.google.android.gms.ipa.base.IpaGcmTaskService finished executing. cause:5 result: 1 elapsed_millis: 150 uptime_millis: 150 exec_start_elapsed_seconds: 249680 [CONTEXT service_id=218 ]
12-20 06:18:49.804  3693  6746 D ConnectivityService: filterNetworkStateForUid() uid: 10012 networkInfo: [type: WIFI[] - WIFI,metered: false]
12-20 06:18:49.805 30752 30752 W System  : ClassLoader referenced unknown path: /system/priv-app/SecMediaProvider/lib/arm64
12-20 06:18:49.808  3693  7668 D SamsungAlarmManager: Cancel Alarm calling from uid:10012 pid :5149 / op:PendingIntent{b41ee: PendingIntentRecord{66f51d0 com.google.android.gms broadcastIntent}}
12-20 06:18:49.820  3693 20264 D SamsungAlarmManager: setInexact Intent (T:2/F:0/AC:false) 20201220T063229 - CU:10012/CP:5149
12-20 06:18:49.827  3693  4937 E LocSvc_ApiV02: I/<--- void globalEventCb(locClientHandleType,uint32_t,const locClientEventIndUnionType,void *) line 129 QMI_LOC_EVENT_GNSS_SV_INFO_IND_V02
12-20 06:18:49.827  3693  8884 E LocSvc_libulp: I/int ulp_brain_process_gnss_sv_report(const GnssSvStatus *),gnss sv report cnt = 39929,gnss pos report cnt = 0,strong sv cnt = 0
12-20 06:18:49.827  3693  4934 E LocSvc_eng: E/Calling gnss_sv_status_cb
12-20 06:18:49.828  3693  4934 D GnssLocationProvider_ex: SV Count : 1      (PRN,Constellation,SNR,Elevation,Azimuth,Used)
12-20 06:18:49.828  3693  4934 D GnssLocationProvider_ex: (21,GLONASS,22.3,43.0,156.0,0) 
12-20 06:18:49.828 30752 30752 W System  : ClassLoader referenced unknown path: /system/priv-app/SecDownloadProvider/lib/arm64
12-20 06:18:49.835  3693  4937 E LocSvc_ApiV02: I/<--- void globalEventCb(locClientHandleType,void *) line 129 QMI_LOC_EVENT_POSITION_REPORT_IND_V02
12-20 06:18:49.835  3693  8884 E LocSvc_libulp: I/int ulp_brain_process_gnss_position_report(enum loc_sess_status,LocPosTechMask,UlpLocation *,const GpsLocationExtended *,const void *),transition provider returned = 0
12-20 06:18:49.835  3693  8884 E LocSvc_libulp: I/int ulp_brain_process_gnss_position_report(enum loc_sess_status,report GNSS position/status to hybrid fix requests = 0
12-20 06:18:49.841  3693  3707 D ConnectivityService: filterNetworkStateForUid() uid: 10012 networkInfo: [type: WIFI[] - WIFI,metered: false]
12-20 06:18:49.842  3693  5926 D ConnectivityService: filterNetworkStateForUid() uid: 10012 networkInfo: [type: WIFI[] - WIFI,metered: false]
12-20 06:18:49.846  3693  4284 D SamsungAlarmManager: Cancel Alarm calling from uid:10012 pid :5149 / op:PendingIntent{ef5c68f: PendingIntentRecord{66f51d0 com.google.android.gms broadcastIntent}}
12-20 06:18:49.865  3693  4350 W InputDispatcher: channel ~ Consumer closed input channel or an error occurred.  events=0x9
12-20 06:18:49.865  3693  6751 D SamsungAlarmManager: setInexact Intent (T:2/F:0/AC:false) 20201220T063229 - CU:10012/CP:5149
12-20 06:18:49.866  3693  4350 E InputDispatcher: channel ~ Channel is unrecoverably broken and will be disposed!
12-20 06:18:49.868  3693  4350 W InputDispatcher: channel ~ Consumer closed input channel or an error occurred.  events=0x9
12-20 06:18:49.868  3693  4350 E InputDispatcher: channel ~ Channel is unrecoverably broken and will be disposed!
12-20 06:18:49.925  3693  6722 I WindowManager: WIN DEATH: Window{4137b90d0 u0 com.xxxx.xxxxx/com.xxxx.xxxxx.view.home.MainActivity}
12-20 06:18:49.925  3693  7668 D LocationManagerService: Location listener died at com.xxxx.xxxxx
12-20 06:18:49.925  3693  6722 D WindowManager: disposeInputChannel mInputChannel: 4137b90 com.xxxx.xxxxx/com..xxxx.xxxxx.view.home.MainActivity (server)
12-20 06:18:49.925  3693  7668 I LocationManagerService: remove 9a5efd by com.xxxx.xxxxx
12-20 06:18:49.925  3693  6722 W InputDispatcher: Attempted to unregister already unregistered input channel
12-20 06:18:49.925  3693 25822 D ConnectivityService: ConnectivityService NetworkRequestInfo binderDied(NetworkRequest [ id=541,legacyType=-1,[ Transports: CELLULAR|WIFI Capabilities: NOT_RESTRICTED&TRUSTED&NOT_VPN] ],android.os.BinderProxy@2bf4d1c)
12-20 06:18:49.926  3693  4421 D ConnectivityService: releasing NetworkRequest NetworkRequest [ id=541,[ Transports: CELLULAR|WIFI Capabilities: NOT_RESTRICTED&TRUSTED&NOT_VPN] ]
12-20 06:18:49.926  3693  7668 I AppOps  : sendInfoToFLP,nsFlpFeatureLevel is 0,return
12-20 06:18:49.926  3693 25822 D InputTransport: Input channel destroyed: fd=586
12-20 06:18:49.926  3693  5026 D GraphicsStats: Buffer count: 10
12-20 06:18:49.928  3693  4284 D ActivityManager: cleanUpApplicationRecord -- 29141
12-20 06:18:49.928  3693  7668 D LocationManagerService: provider request: gps ProviderRequest[OFF]
12-20 06:18:49.930  3693  4921 D SamsungAlarmManager: Cancel Alarm calling from uid:1000 pid :3693 / op:PendingIntent{c496876: PendingIntentRecord{a599e77 android broadcastIntent}}
12-20 06:18:49.931  3693  4921 D SamsungAlarmManager: Cancel Alarm calling from uid:1000 pid :3693 / op:PendingIntent{d7aeae4: PendingIntentRecord{13fab4d android broadcastIntent}}
12-20 06:18:49.932  3693  8884 E LocSvc_libulp: I/int ulp_msg_process_criteria_update(const UlpLocationCriteria *): valid 0x27 action:2,minTime:600000,minDistance:0.000000,singleShot:0,horizontalAccuracy:0,powerRequirement:0,emergency_request:0
12-20 06:18:49.932  3693  8884 E LocSvc_libulp: I/int ulp_brain_process_criteria_update() index at 0,isNew = 0,mask 0x9a77,provider source = 4,accuracy = 1,singleshot = 0,tbf = 86400000 emergency_request = 0
12-20 06:18:49.933  3693  4421 D ConnectivityService: sending notification RELEASED for NetworkRequest [ id=541,[ Transports: CELLULAR|WIFI Capabilities: NOT_RESTRICTED&TRUSTED&NOT_VPN] ]
12-20 06:18:49.935  3693  4421 E ConnectivityService: RemoteException caught trying to send a callback msg for NetworkRequest [ id=541,[ Transports: CELLULAR|WIFI Capabilities: NOT_RESTRICTED&TRUSTED&NOT_VPN] ]
12-20 06:18:49.936  8772  8772 D InputTransport: Input channel destroyed: fd=84
12-20 06:18:49.936  5869 19719 D ForegroundUtils: could not check pending caller
12-20 06:18:49.937  3693  4284 W ActivityManager: Force removing ActivityRecord{5971a53d0 u0 com.xxxx.xxxxx.view.home.MainActivity t1564}: app died,no saved state
12-20 06:18:49.937  3693  4284 W MultiScreenManagerService: moveTaskBackToDisplayIfNeeded(): root is not base activity
12-20 06:18:49.939  3693  4284 D GameManagerService: there is not sem_perfomance_mode on setting
12-20 06:18:49.947  3693  6722 D InputDispatcher: Focus left window: 29141
12-20 06:18:49.948  3693  6722 D InputTransport: Input channel destroyed: fd=521
12-20 06:18:49.949  3693  6722 D InputTransport: Input channel constructed: fd=521
12-20 06:18:49.949  3693  6722 D InputTransport: Input channel constructed: fd=526
12-20 06:18:49.949  3693  6722 D WindowManager: openInputChannel mInputChannel: 4137b90 com.xxxx.xxxxx/com.xxxx.xxxxx.view.home.MainActivity (server)
12-20 06:18:49.950  3693  6722 D InputDispatcher: Focus entered window: 29141
12-20 06:18:49.950  3693  5662 I WindowManager: WIN DEATH: Window{fb50cd6d0 u0 com.xxxx.xxxxx/com..xxxx.xxxxx.view.home.MainActivity}
12-20 06:18:49.950  3693  5662 D WindowManager: disposeInputChannel mInputChannel: fb50cd6 com.xxxx.xxxxx/com.xxxx.xxxxx.view.home.MainActivity (server)
12-20 06:18:49.950  3693  5662 W InputDispatcher: Attempted to unregister already unregistered input channel
12-20 06:18:49.960  3693  4937 E LocSvc_ApiV02: I/<--- void globalEventCb(locClientHandleType,void *) line 129 QMI_LOC_EVENT_ENGINE_STATE_IND_V02
12-20 06:18:49.968  3693  5662 D InputTransport: Input channel destroyed: fd=524
12-20 06:18:49.970  3693  5662 D InputTransport: Input channel constructed: fd=524
12-20 06:18:49.970  3693  5662 D InputTransport: Input channel constructed: fd=527
12-20 06:18:49.971  3693  5662 D WindowManager: openInputChannel mInputChannel: fb50cd6 com.xxxx.xxxxx/com.xxxx.xxxxxview.home.MainActivity (server)
12-20 06:18:49.974  3693  4934 D GnssLocationProvider: reportStatus status: 2
12-20 06:18:49.982  3693  4284 D InputDispatcher: Focus left window: 29141
12-20 06:18:49.982  3693  4284 D InputDispatcher: Focused application released
12-20 06:18:50.006  3693  4284 D ActivityManager: moveToFront() : reason=appDied setFocusedActivity isAttached=true TaskRecord{4a3c047d0 #1516 A=com.sec.android.app.launcher U=0 StackId=0 sz=1}
12-20 06:18:50.007  3693  4284 W MultiScreenManagerService: failed to move task TaskRecord{f110f16d0 #1564 A=com.xxxx.xxxxxU=0 StackId=1 sz=0}
12-20 06:18:50.008  3693  4284 D ActivityManager: setFocusStackUnchecked: reason=appDied setFocusedActivity focusCandidate=ActivityStack{bdb1cbcd0 stackId=0,2 tasks} caller=com.android.server.am.ActivityStack.moveToFront:875 com.android.server.am.ActivityStackSupervisor.moveActivityStackToFront:2006 
12-20 06:18:50.013  3693  4284 D InputDispatcher: Focused application set to: xxxx
12-20 06:18:50.016  3693  4284 D ActivityManager: resumeTopActivityInnerLocked() : #0 prevTask=null next=ActivityRecord{29f086bd0 u0 com.sec.android.app.launcher/.activities.LauncherActivity t1516} mFocusedStack=ActivityStack{bdb1cbcd0 stackId=0,2 tasks}
12-20 06:18:50.018  3693  4284 D CustomFrequencyManagerService: acquireDVFSLockLocked : type : DVFS_MIN_LIMIT  frequency : 2100000  uid : 1000  pid : 3693  pkgName : AMS_APP_HOME@CPU_MIN@7
12-20 06:18:50.018  3693 10812 D f       : limitCPUFreq:: freq = -1
12-20 06:18:50.019  3693  4284 D ActivityManagerPerformance: AMP_acquire() HOME
12-20 06:18:50.019  3693 10812 D CustomFrequencyManagerService: releaseDVFSLockLocked : Getting Lock type frm List : DVFS_MAX_LIMIT  frequency : 1600000  uid : 1000  pid : 3693  tag : SIOP_ARM_MAX@20
12-20 06:18:50.019  3693  4284 D ActivityManager: applyOptionsLocked(),pendingOptions : null
12-20 06:18:50.019  3693 10812 D f       : limitGPUFreq:: freq = -1
12-20 06:18:50.022  3693 10812 D TelephonyManager: getAllCellInfo : Caller (PID / UID / TID): 3693 / 1000 / 10812
12-20 06:18:50.026  3693  4284 D GameManagerService: there is not sem_perfomance_mode on setting
12-20 06:18:50.027  3693  3693 D GameManagerService: NotifyRunnable. pkg: com.sec.android.app.launcher,type: 4,isMinimized: false,isTunableApp: false
12-20 06:18:50.027  3693  3693 D GameManagerService: unexpected mPrevNotiType: -1
12-20 06:18:50.030  3693  4934 D GnssLocationProvider: send an intent to notify GPS has been enabled or disabled mNavigating = false
12-20 06:18:50.030  3693  4934 D IzatProviderEngine_jni: onStatusChangedJNI :: status : 5
12-20 06:18:50.030  3693  4934 D GnssLocationProvider: reportStatus status: 4
12-20 06:18:50.030  3693  3721 D WindowManager: set systemUiVisibility of statusbar : vis= 0x2608
12-20 06:18:50.030  3693  4934 D IzatProviderEngine_jni: onStatusChangedJNI :: status : 7
12-20 06:18:50.032  3693  4385 D ConnectivityService: filterNetworkStateForUid() uid: 
InputWindowHandle=Window{fb50cd6d0 u0 com.xxxx.xxxx/com.xxxx.xxxx.view.home.MainActivity},layer=21005,frame=[0,1440,2560],touchableRegion=SkRegion((0,2560)),visible=false,inputChannel=fb50cd6 com.xxxx.xxxx/com.xxxx.xxxx.view.home.MainActivity (server)
12-20 06:18:50.189  3693  3730 W WindowManager: 
12-20 06:18:50.190  3693  3730 I WindowManager_SurfaceController: Destroying surface Surface(name=com.xxxx.xxxx/com.xxxx.xxxx.view.home.MainActivity) called by com.android.server.wm.WindowStateAnimator.destroySurface:2907 com.android.server.wm.WindowStateAnimator.destroySurfaceLocked:1120 com.android.server.wm.WindowManagerService.rebuildAppWindowListLocked:10559 com.android.server.wm.WindowManagerService.rebuildAppWindowListLocked:10473 com.android.server.wm.WindowSurfacePlacer.handleAppTransitionReadyLocked:1373 com.android.server.wm.WindowSurfacePlacer.performSurfacePlacementInner:382 com.android.server.wm.WindowSurfacePlacer.performSurfacePlacementLoop:278 com.android.server.wm.WindowSurfacePlacer.performSurfacePlacement:226 
12-20 06:18:50.190  3158 25306 I SurfaceFlinger: id=471 Removed NainActivit (3/7)
12-20 06:18:50.191  3158  4486 I SurfaceFlinger: id=471 Removed NainActivit (-2/7)
12-20 06:18:50.191  3693  3730 W WindowManager: This window was lost: Window{4137b90d0 u0 com.xxxx.xxxx/com.xxxx.xxxx.view.home.MainActivity}
12-20 06:18:50.191  3693  3730 W WindowManager: mDisplayId=0 stackId=1 mSession=Session{ae6f950 29141:u0a10357} mClient=android.os.BinderProxy@5a49653

这是代码

downloadManager = context.getSystemService(DOWNLOAD_SERVICE) as DownloadManager
context.registerReceiver(onComplete,IntentFilter(ACTION_DOWNLOAD_COMPLETE))
val request = DownloadManager.Request(Uri.parse(url))

                        request.addRequestHeader(
                            OAuth.AUTHORIZATION_HEADER,prefs?.tokenType + " " + prefs?.token
                        )
                    
                    request.setAllowedNetworkTypes(DownloadManager.Request.NETWORK_MOBILE or DownloadManager.Request.NETWORK_WIFI)
                    request.setDescription(context.getString(title))
                    request.setTitle(item.name)
                    val fileName = FileUtils.getFileName(url)

                    val file = FileUtils.getExternalFile(context,directory,fileName)
                    request.setDestinationInExternalFilesDir(
                        context,fileName
                    ) 
                    file.delete()
                    val dowloadId = downloadManager?.enqueue(request)

更新: 这是该特定设备中下载管理器的问题。在下载管理器应用上清除数据后,它开始正常工作。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

依赖报错 idea导入项目后依赖报错,解决方案:https://blog....
错误1:代码生成器依赖和mybatis依赖冲突 启动项目时报错如下...
错误1:gradle项目控制台输出为乱码 # 解决方案:https://bl...
错误还原:在查询的过程中,传入的workType为0时,该条件不起...
报错如下,gcc版本太低 ^ server.c:5346:31: 错误:‘struct...