Git Product home page Git Product logo

Comments (7)

limpoxe avatar limpoxe commented on August 18, 2024

@hjw541988478 调用代码贴出来看下。可以试试PluginContextTheme.getOuter() 这个方法返回组件附着的Activity对象

from android-plugin-framework.

goatatop avatar goatatop commented on August 18, 2024

现在遇到的问题是:A,B,C三个APK,在加载完成后,去启动B或者C,会发生ClassNotFoundException的错误(B依赖A,C依赖B也依赖A,已经在B和C中使用provided去掉重复打包),有什么可能会导致这种异常么= =

from android-plugin-framework.

limpoxe avatar limpoxe commented on August 18, 2024

没有在manifest中配依赖关系,所以框架不知道它们之间的依赖关系

from android-plugin-framework.

goatatop avatar goatatop commented on August 18, 2024

Good ~ 我先试试后续有更多问题的话麻烦了 ~

from android-plugin-framework.

goatatop avatar goatatop commented on August 18, 2024

现在遇到的问题是插件Activity setContentView(layResID) 后 ,findViewById()拿到的View是 null 。。

from android-plugin-framework.

goatatop avatar goatatop commented on August 18, 2024

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.

goatatop avatar goatatop commented on August 18, 2024

已经解决了

from android-plugin-framework.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.