"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.
精彩评论