Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于仿写插件访问sample-host-lib中HostAddPluginViewContainerHolder的疑问 #1331

Closed
AndroidMuggle opened this issue Jun 6, 2024 · 0 comments

Comments

@AndroidMuggle
Copy link

AndroidMuggle commented Jun 6, 2024

我这边想仿写一个HostAddPluginViewService调用sample-host-lib中类,但是出现了编译异常,我自己这边排查了一段时间没能解决问题,麻烦大佬帮忙看下我这边的问题,是不是还有漏掉的细节或者错误配置:
1、报错如下:
e: E:\Proj*\test_math_card\src\main\java*\test_math_card\HostAddMathCardService.kt: (7, 39): Unresolved reference: CardProviderHolder
2、我仿写的CardProviderHolder类似于HostAddPluginViewContainerHolder的能力,该模块名称为host-lib,以下是我的host-lib在项目中的引用(app模块是我仿写的项目中的宿主app,test_math_card为插件app)
微信图片_20240606164840
3、仿写的项目中白名单配置如下:
微信图片_20240606182216
4、仿写的项目中loader模块的白名单也有配置host-lib的包名:
微信图片_20240606171220
5、各个模块也已经按照sample添加了混淆规则

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant