Git Product home page Git Product logo

插件是加载成功了 但是跳转插件的activity出现了 java.lang.IllegalAccessError: Class ref in pre-verified class resolved to unexpected implementation这个错误 板子是4.4.4系统的 about virtualapk HOT 14 CLOSED

xmtggh avatar xmtggh commented on May 22, 2024
插件是加载成功了 但是跳转插件的activity出现了 java.lang.IllegalAccessError: Class ref in pre-verified class resolved to unexpected implementation这个错误 板子是4.4.4系统的

from virtualapk.

Comments (14)

qq634421026 avatar qq634421026 commented on May 22, 2024

我是加载成功之后跳转出现
Caused by: android.content.ActivityNotFoundException: Unable to find explicit activity class {online.aroenzhang.virtualapkplugin/online.aroenzhang.virtualapkplugin.MainActivity}; have you declared this activity in your AndroidManifest.xml?

from virtualapk.

xmtggh avatar xmtggh commented on May 22, 2024

@qq634421026 是的!我自己写了个,和使用个官方的demo出现了相同的错误!直接运行插件app是可以的

from virtualapk.

qq634421026 avatar qq634421026 commented on May 22, 2024

@xmtggh 插件你是怎么打出来的 我的也是插件可以单独安装运行,但是在宿主中跳转插件上的activity时候就报错了

from virtualapk.

xmtggh avatar xmtggh commented on May 22, 2024

@qq634421026 直接build出来的 没有签名

from virtualapk.

qq634421026 avatar qq634421026 commented on May 22, 2024

@xmtggh 是常规的build吗 好像这个要 build assemblePlugin这个 我签名也是不好使

from virtualapk.

xmtggh avatar xmtggh commented on May 22, 2024

@qq634421026 是的,还是在研究一下 感觉可能是我某个步骤的问题

from virtualapk.

TheBloodElf avatar TheBloodElf commented on May 22, 2024

我现在在官方的demo基础上缩减代码,达到了相当于新建工程那样的代码量;也可以成功实现跳转,之后打算在此缩减demo基础上进行开发,不自己另外新建项目了,因为我试了一天了,还是不知道自己新建的和官方的有什么区别

from virtualapk.

TheBloodElf avatar TheBloodElf commented on May 22, 2024

@xmtggh @qq634421026 宿主app可以直接run进行测试,插件app需要assemblePlugin

from virtualapk.

qq634421026 avatar qq634421026 commented on May 22, 2024

@TheBloodElf 我插件assemblePlugin报错,只能assembleReleasePlugin

from virtualapk.

xmtggh avatar xmtggh commented on May 22, 2024

@TheBloodElf clean一下试试 我的成功了 在原来的demo上修改是可以的!自己的demo还是有点问题,你先尝试着跳转官方的!

from virtualapk.

xmtggh avatar xmtggh commented on May 22, 2024

@qq634421026 clean一下试试 我的成功了 在原来的demo上修改是可以的!自己的demo还是有点问题,你先尝试着跳转官方的!

from virtualapk.

qq634421026 avatar qq634421026 commented on May 22, 2024

@xmtggh 我自己的demo跳转的时候跳到自己了然后再点久崩了

from virtualapk.

 avatar commented on May 22, 2024

清理宿主项目重新编译试试

from virtualapk.

hprostudy avatar hprostudy commented on May 22, 2024

@qq634421026 请问在Window下使用官方demo(0.9.0),assemblePlugin成功后加载插件也报这个错误是什么情况?你的解决了吗?

from virtualapk.

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.