开发者

"redirect" packages

开发者 https://www.devze.com 2023-03-31 13:54 出处:网络
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?

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

精彩评论

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