문제

I am developing an Android application which needs some rmi stuff since Android doesn't support rmi by default i found this project can be used to bundle the rmi package with my Android application but i couldn't find a jar which includes java.rmi package. can anybody suggest where to find it? or any other way to use java.rmi with Android

Thanks !!!

도움이 되었습니까?

해결책

It is unlikely that you will be able to use RMI on Android. Even if you took the code for RMI from Apache Harmony or some other source, Android does not like projects attempting to load java.* classes other than those that ship with the OS, and so will throw a compile error.

It is conceivable that you could use jarjar or simple refactoring to move all the RMI code into some other package (e.g., keshan.java.rmi), but I have no idea how well that will work.

BTW, here are some more instructions on this process.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top