在两个应用程序之间共享资源/构建路径
问题是,我无法将所有 jar 编译成一个 apk,所以我必须使用两个 APK,如果我使用其中之一作为库,它编译它不会出现错误,并且我可以运行它(两个 apk 都是安装在设备上),但是当我使用一种使用插件 apk 中的一些 jar 的方法(所需类的导入编译没有错误)时,它会抛出 no class found 异常,那么问题是我应该如何设置类路径或清单文件,以便 dalvik 知道该资源在其他 apk 上可用(顺便说一句,设备上也安装了该资源)?
谢谢 !
Here is the issue, i cannot compile all of my jars into one apk, so i have to use two APK'S, if i use one of them as the library, it compile it with no errors, and i can run it(both apk's are installed on the device), but when i use a method that uses some of the jars from the addon apk(the importing of the needed class compiles with no errors), it throw no class found exception, the question then is how should i set the classpath or the manifest file so the dalvik will know that the resouce is avialable on the other apk(which btw is installed on the device too) ?
Thank you !
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我无法直接回答你的问题,但我认为你应该进行其他设计,将最基本的内容放入 APK 中,并将填充该 APK 的所有大文件作为文件放在单独的存储中(最有可能是 SD 卡)。 APK 应该安装,然后检查这些文件,如果不存在,请下载它们。
这就是大多数大型游戏的运作方式。
I cant answer your question directly, but I think you should design otherwise, put the bare essentials inside the APK, and place all the large files that are filling up that APK, as files in a separate storage (SD Card most likely). The APK should install, then check for these files, if they are not there, download them.
This is how most big games work.