开发者

"redirect" packages

Is there a way to "redirect" packages?

Is there any possibility to tell Android to get the class-files from e.g. com.java.rmi instead of java.rmi?

Some additional libraries depend on this package so I r开发者_如何转开发epacked it with jarjar - otherwise dalvik-exc would occur.


Just change your import statements. If you are using Eclipse, you can just remove the java.rmi import lines and press Control-Shift-O (Organize Imports). It will ask you which package to import.

Edit: yes, you have to do this in all files that use said package.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜