alibaba / atlas

A powerful Android Dynamic Component Framework.
Apache License 2.0
8.13k stars 1.48k forks source link

[demo]:RemoteView创建时RemoteFactory.requestRemote报:no match remote-item with intent错误(Mainifest已经注册了) #230

Closed fushiming1983 closed 6 years ago

fushiming1983 commented 6 years ago

Mainifest: <meta-data android:name="atlas.view.intent.action.SECOND_RICH1" android:value="com.taobao.secondbundle.MyRichFrameLayout"/>

User: RemoteFactory.requestRemote(RemoteView.class, this, new Intent("atlas.view.intent.action.SECOND_RICH1"), new RemoteFactory.OnRemoteStateListener() { @Override public void onRemotePrepared(RemoteView iRemoteContext) { FrameLayout layout = (FrameLayout) findViewById(R.id.fl_content); FrameLayout.LayoutParams params = new FrameLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT); layout.addView(iRemoteContext,params); }

        @Override
        public void onFailed(String s) {
            Log.e("UserRemoteActivity",s);
        }
    });

打断点时查看:BundleListing.BundleInfo -> remoteViews 为空

candledragle commented 6 years ago

@fushiming1983 我也遇到了这个问题,我还测试了RemoteFragment #233

sony9997 commented 6 years ago

我也遇到了

18311023368 commented 6 years ago

同问

zhangfeifeilz commented 6 years ago

将demo中的atlas的版本改为5.0.8.0-rc46@aar就可以了。貌似这个是demo中引用的那个版本的一个bug