Git Product home page Git Product logo

Comments (11)

zk0301 avatar zk0301 commented on May 22, 2024

issue里有人提到过啊。book那个改成继承activity即可。
也可以把host跳转那个,改成跳到main。

from virtualapk.

chenenyu avatar chenenyu commented on May 22, 2024

@noway211 你的插件apk是怎么生成的? assemblePlugin?

from virtualapk.

zk0301 avatar zk0301 commented on May 22, 2024

我没有用命令行。 我是用studio导入新建的项目,编译运行,然后卸载掉。然后apk push到sdcard下面。

from virtualapk.

chenenyu avatar chenenyu commented on May 22, 2024

@zk0301 这样是不行的,参考wiki中的demo指南,插件的编译需要执行特定的任务。

from virtualapk.

zk0301 avatar zk0301 commented on May 22, 2024

@chenenyu 我确实成功了呀。= =!

from virtualapk.

TheBloodElf avatar TheBloodElf commented on May 22, 2024

@zk0301 你那样属于独立模式没有问题,耦合模式需要把插件工程放入宿主工程目录中进行编译;因为插件工程有一个targetHost需要配置路径

from virtualapk.

zk0301 avatar zk0301 commented on May 22, 2024

@TheBloodElf 问题是,我自己新创建了2个项目,一个host一个plug,重头开始做,按步骤来的,点击host按钮跳转报错,奇怪。targetHost应该怎么填。

from virtualapk.

TheBloodElf avatar TheBloodElf commented on May 22, 2024

@zk0301 我成功过一次,然后后面就失败了。。targetHost一般是相对路径,直接把插件工程复制进宿主工程根目录,然后targetHost写'../../VirtualAPK/app',VirtualAPK是你宿主工程的名字

from virtualapk.

singwhatiwanna avatar singwhatiwanna commented on May 22, 2024

@zk0301 @TheBloodElf 插件工程不是非得在宿主工程目录下面,你放在哪里都可以,只要targetHost指向宿主工程的Application module即可,大家别误解了。

from virtualapk.

singwhatiwanna avatar singwhatiwanna commented on May 22, 2024

@noway211 @TheBloodElf 另外,这个错误是因为插件包构建不正确导致的,大家不要去改Activity的父类,它的父类就是AppCompatActivity。

如果你直接把插件工程run出来一个包,这个包肯定不是合法的插件包,看一下wiki,再有类似问题就直接关闭了。

from virtualapk.

sdgSnow avatar sdgSnow commented on May 22, 2024

我是跳转到new的插件工程就可以,但是自己项目就不行了

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.