簡體   English   中英

splitInstallManager 的 onCompleteListener 顯示成功時未安裝動態功能模塊

[英]Dynamic Feature Module not getting installed while onCompleteListener of splitInstallManager is showing success

1596788538.956 20445-20445/com.tscore.app I/PlayCore: UID: [10198] PID: [20445] SplitInstallService: startInstall([aadhar_module],[]) 1596788538.957 20445-21761/com.tcore.app I/PlayCore: UID :[10198] PID:[20445] SplitInstallService:啟動與服務的綁定。 1596788538.968 20445-20445/com.tscore.app I/PlayCore: UID: [10198] PID: [20445] SplitInstallService: ServiceConnectionImpl.onServiceConnected(ComponentInfo{com.android.vending/com.google.android.finsky.splitinstallservice.SplitInstallService} ) 1596788538.968 20445-21761/com.tcore.app I/PlayCore: UID: [10198] PID: [20445] SplitInstallService: linkToDeath 1596788539.009 20445-21761/com.tscore.app I/PlayCore: UID: [10198] PID: [ 20445] SplitInstallService:與服務解除綁定。 1596788539.010 20445-22722/com.tscore.app I/PlayCore:UID:[10198] PID:[20445] SplitInstallService:onStartInstall(28) 1596788539.013 20445-20445/com.tscore.app D/HwRTBlurUtils:檢查 HwToast- 的模糊樣式Toast, themeResId: 0x0103013f, context: android.app.ContextImpl@b368d8e, Nhwext: 6, get Blur: disable with, android.graphics.drawable.NinePatchDrawable@f5133bb 1596788539.024 20445-20445/com.tscore.app D/HwRTBlurUtils: check blur style for HwToast-Toast, themeResId: 0x0103013f, context: android.app.ContextImpl@b368d8e, Nhwext: 6, get Blur: disable with, android.graphics.drawable.NinePatchDrawable@f830d8 1596788539.034 20445-20445/com.tscore.app D/HwRTBlurUtils:檢查 HwToast-Toast 的模糊樣式,themeResId:0x0103013f,上下文:android.app.ContextImpl@b368d8e,Nhwext:6,獲取模糊:禁用與,ZC31B32364CE19CA8FCD150A417.NCCE.graphics。 inePatchDrawable@79ecc31 1596788539.048 20445-20524/com.tscore.app D/OpenGLRenderer:HWUI 二進制被禁用 1596788539.058 20445-20445/com.tscore.app W/ViewRootImpl[Toast]:EGLdebug relayoutWindow Surface isSurface(name=null) (appName isSurface(name=null) com.tscore.app) (mSurfaceControllerIsValid =false) (mNativeObject =0)/@0xc2b8284,viewVisibility is0 1596788539.080 20445-20445/com.tscore.app W/ViewRootImpl[Toast]: EGLdebug relayoutWindow Surface isSurface(name=null) (appName =com.tscore.app) (mSurfaceControllerIsValid =true) (mNativeObject =73173e5000)/@0xc2b8284,relayoutResult is7 1596788539.080 20445-20445/com.tscore.app W/ViewRootImpl[Toast]: EGLdebug Surface isSurface(name=null) (appName =com.tscore.app) (mSurfaceControllerIsValid =true) (mNativeObject =73173e5000)/@0xc2b8284

我打印了日志-

DynamicDeliveryUtils->downloadAndInstallModule() addOnSuccessListener  module=optionalFeature1
DynamicDeliveryUtils->downloadAndInstallModule() addOnCompleteListener module=optionalFeature1
DynamicDeliveryUtils->downloadAndInstallModule() PENDING module=optionalFeature1
DynamicDeliveryUtils->downloadAndInstallModule() DOWNLOADING module=optionalFeature1
DynamicDeliveryUtils->downloadAndInstallModule() DOWNLOADING module=optionalFeature1
DynamicDeliveryUtils->downloadAndInstallModule() DOWNLOADING module=optionalFeature1
DynamicDeliveryUtils->downloadAndInstallModule() INSTALLING module=optionalFeature1
DynamicDeliveryUtils->downloadAndInstallModule() INSTALLED module=optionalFeature1 

如您所見, addOnSuccessListeneraddOnCompleteListener被立即調用。 模塊進入掛起、下載、安裝和安裝 state。 我已經重定向了我的可選模塊屏幕,它工作正常,所以你應該在INSTALLED state 中編寫代碼。

when (splitInstallSessionState.status()) {
    SplitInstallSessionStatus.INSTALLED -> {
    //module has been installed, now redirect to module screen
    }
}

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM