S0S

Results 5 comments of S0S

@AnBetter 我也遇到了同一样的问题,请问你解决了吗?

这个问题的原因已经找到了, `AppPlugin.groovy` ``` protected void resolveReleaseDependencies() { // Pre-split all the jar dependencies (deep level) def compile = project.configurations.compile compile.exclude group: 'com.android.support', module: 'support-annotations rootSmall.preLinkJarDir.listFiles().each { file -> if (!file.name.endsWith('D.txt'))...

> 你是想获取插件里的资源id么,因为在插件里通过context获取到的包名其实是宿主的包名,是获取不到插件的包名的,如果是插件的资源id,当然在宿主包的R中查找不到会返回0 > 我也很想知道,如何才能在代码中获取到插件的包名 对的,是这个原因,我们已经解决了。通过 Context 获取插件包名,可以在 load 插件时,创建 PluginContext 时,把其包名替换为插件的包名就可以了。

这个原因找到了,是因为在取桩的时候,只判断了 launchMode,但是当其 launchMode = standard 的时候,如果添加了 FLAG_ACTIVITY_CLEAR_TOP,复用了上一个 standard 的桩,导致上一个 Activity 被清掉了。

我也遇到相同的问题,不清楚这个为啥拿不到这个属性。