Comments (7)
@hjw541988478 调用代码贴出来看下。可以试试PluginContextTheme.getOuter() 这个方法返回组件附着的Activity对象
from android-plugin-framework.
现在遇到的问题是:A,B,C三个APK,在加载完成后,去启动B或者C,会发生ClassNotFoundException的错误(B依赖A,C依赖B也依赖A,已经在B和C中使用provided去掉重复打包),有什么可能会导致这种异常么= =
from android-plugin-framework.
没有在manifest中配依赖关系,所以框架不知道它们之间的依赖关系
from android-plugin-framework.
Good ~ 我先试试后续有更多问题的话麻烦了 ~
from android-plugin-framework.
现在遇到的问题是插件Activity setContentView(layResID) 后 ,findViewById()拿到的View是 null 。。
from android-plugin-framework.
W/ResourceType(92197): ResTable_typeSpec entry count inconsistent: given 104, previously 76 W/ResourceType(92197): ResTable_typeSpec entry count inconsistent: given 46, previously 1 W/ResourceType(92197): ResTable_typeSpec entry count inconsistent: given 1, previously 39 W/ResourceType(92197): ResTable_typeSpec entry count inconsistent: given 2, previously 10 W/ResourceType(92197): ResTable_typeSpec entry count inconsistent: given 321, previously 21 W/ResourceType(92197): ResTable_typeSpec entry count inconsistent: given 14, previously 8 W/ResourceType(92197): ResTable_typeSpec entry count inconsistent: given 240, previously 75 W/ResourceType(92197): ResTable_typeSpec entry count inconsistent: given 19, previously 318 W/ResourceType(92197): ResTable_typeSpec entry count inconsistent: given 6, previously 5
感觉是固定资源ID造成的错误,Build的时候会有相关的警告
from android-plugin-framework.
已经解决了
from android-plugin-framework.
Related Issues (20)
- 启动直接崩溃问题 HOT 1
- 宿主调用独立插件的Fragment报ClassCastException
- com.google.android.gms不是插件包名
- 如何预加载 HOT 1
- Windows环境下使用的若干问题反馈 HOT 1
- HostInfo.prop文件丢失,请检查此路径:E:\AndroidProject\plugindemo\app\build\outputs\baselinePatch\HostInfo.prop
- 一直提示没有配置application id HOT 6
- 这个支付谷歌和facebook吗?
- 宿主app 不能开启 minifyEnabled true 混淆
- 能用来启动uiautomator2单元测试项目吗
- 插件apk 是否可以打包证书jks,保持插件自己的包名和签名?不同于宿主包名和签名? HOT 1
- 支持androidx吗 HOT 2
- studio4.0.1版本下,androidx 在SDK初始化报错 HOT 2
- 独立apk 安装完毕, 打开不了 HOT 4
- 有没有办法让宿主和插件用同一个applicationID HOT 1
- 请更新支持 Android 12
- 插件无法使用显示在应用上层特性 HOT 3
- 成功安装之后,查询列表也可以顺利得到安装包名,但是无法打开 HOT 1
- 能否过 Google Play 市场?
- 为什么集成不了?也没有Demo吗? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android-plugin-framework.