在不同的apk相同的包名 [英] same package name in different apk

查看:230
本文介绍了在不同的apk相同的包名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能在不同的APK来定义不同的类相同的包吗?
举例有

Is it possible to define different classes of the same package in different apk ? By example having


    package org.company;
    public class A { ... }


在Android项目

in an Android project and


    package org.company;
    public class B { ... }


在另一个Android项目

in another Android project

难道是做一件好事吗?

推荐答案

是的,这是完全可能的。结果
每个APK运行在其自己的虚拟机,因此不存在问题或重叠。

Yes, this is entirely possible.
Each APK runs in its own virtual machine, so there is no problem or overlap.

这必须唯一命名的唯一的事情就是在的Andr​​oidManifest.xml 文件中定义的包名。

The only thing that must be uniquely named is the package name defined in the AndroidManifest.xml file.

这篇关于在不同的apk相同的包名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆