1

我用 Java 为 Android 客户端和服务器开发 Sip 应用程序,但是当我运行 Android 应用程序时。
我有错误

sipFactory.setPathName("gov.nist");

运行时错误消息:- 11-11 07:39:45.816: E/AndroidRuntime(510): java.lang.NoSuchMethodError: javax.sip.SipFactory.setPathName

在 Java 中也是这个错误,但是当我添加log4j-1.2.17.jar 文件时它解决了,但在 Android 中出现了同样的错误,我添加了log4j-1.2.17.jar 文件,但它不起作用....

谁能帮我?

4

1 回答 1

0

in android you should add log4j in libs folder. adding jar in build file would not work. if project does not contain libs folder then create a libs folder in project and put your jar in there. then by right click over the jar -> build path-> add to build path. it should works. another thing in android you may face core javax error. see below link for that Jain SIP stack on android complains of mistaken use of core class

于 2012-11-23T10:10:39.907 回答