Closed GoogleCodeExporter closed 9 years ago
Looks like a duplicate of issue #34.
Original comment by pkurp...@gmail.com
on 30 Dec 2011 at 12:13
Any news with this? Seems that issue #34 workaround doesn't fix this.
Using Tools version 16 and platform-tools version 10.
We found also another related error for android-sdk, but solution doesn't seem
to help.
http://code.google.com/p/android/issues/detail?id=18359
Original comment by tekk...@gmail.com
on 5 Jan 2012 at 3:06
I was able to build this using the following method:
1. Generate build.xml (need to be in "core" directory):
/opt/android-sdk-macosx/tools/android update project -p .
2. Hack dx to force this option. I did it by copying dx to dx.orig and
replacing dx with the following script:
#!/bin/bash
echo "DEX arguments $*"
if [ "--dex" == "$1" ] ; then
shift
fi
echo "New DEX arguments: --dex --core-library $*"
exec `dirname $0`/dx.orig --dex --core-library $*
3. Android's build.xml will pick up libs/rcs_api.jar automatically and then
complain about the duplicate classes. I have added "jar.libs.dir=libs-extra" to
local.properties to work-around this problem.
Compiles fine on Mac now
Original comment by ngrigor...@gmail.com
on 17 Feb 2012 at 4:13
[deleted comment]
This problem occurs only since Android 4.x platform. So I stay with my older
platform.
Original comment by jmauffret@gmail.com
on 23 Feb 2012 at 8:52
I've a problem with Android versions and I tried everything mentioned in this
issue.
My client works right with Android 2.2.1. With Android 2.3.5 I get the next
error when I turn on the RCS service:
SIP stack initialization has failed
otro.sip.PeerUnavailableException: Failed to initiate
gov.nist.javax.sip.SipStackImpl
at otro.sip.SipFactory.createSipStack(SipFactory.java:60)
at com.orangelabs.rcs.core.ims.protocol.sip.SipInterface.<init>
(SipInterface.java:264)
at com.orangelabs.rcs.core.ims.network.sip.SipManager.initStack
(SipManager.java:122)
at com.orangelabs.rcs.core.ims.network.ImsNetworkInterface.register
(ImsNetworkInterface.java:448)
at com.orangelabs.rcs.core.ims.network.ImsConnectionManager.run
(ImsConnectionManager.java:452)
at java.lang.Thread.run(Thread.java:1019)
Caused by: java.lang.ClassCastException
at java.lang.Class.asSubclass(Class.java:1470)
at otro.sip.SipFactory.createSipStack(SipFactory.java:56)
... 5 more
Can't instanciate the SIP stack
com.orangelabs.rcs.core.ims.protocol.sip.SipException: Can't create the SIP
stack
at com.orangelabs.rcs.core.ims.protocol.sip.SipInterface.<init>
(SipInterface.java:331)
at com.orangelabs.rcs.core.ims.network.sip.SipManager.initStack
(SipManager.java:122)
at com.orangelabs.rcs.core.ims.network.ImsNetworkInterface.register
(ImsNetworkInterface.java:448)
at com.orangelabs.rcs.core.ims.network.ImsConnectionManager.run
(ImsConnectionManager.java:452)
at java.lang.Thread.run(Thread.java:1019)
I changed javax.sip.* for otro.sip.*
Do you have any solution for it?
Original comment by natalia....@gmail.com
on 5 Mar 2012 at 1:28
It's not so easy to change the classname in NIST SIP stack because some classes
are loaded dynamically.
We have done the work also in our side and this will be available the 12/13 of
March.
Original comment by jmauffret@gmail.com
on 5 Mar 2012 at 1:55
I am facing the same problem that natalia is facing(Comment 6). I am using
2.2.8 version with some UI enhancements on top of it.
Is there any other work around to get rid of sip stack initialization error?
Original comment by Anupama....@gmail.com
on 21 Nov 2012 at 5:00
Original issue reported on code.google.com by
YunfeiT...@gmail.com
on 29 Dec 2011 at 9:36