[英]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
如您所见, addOnSuccessListener
和addOnCompleteListener
被立即调用。 模块进入挂起、下载、安装和安装 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.