问题标签 [ice4j]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
java - ICE、SDP 解析异常
我正在尝试将 Ice4J 实现到我的 Android 应用程序中,但我被困在以下代码中:
这是代理的启动方式:
所以该代码相当简单,我所做的就是创建会话描述,然后从字符串重新创建它,这应该不会产生任何问题,对吧?可悲的是,我们开始:
这是第一个 Log.e,在执行 .parse() 之后:
有什么帮助吗?我已经为此苦苦挣扎了好几个小时,但没有找到解决方案......
编辑:经过很长时间找出原因,似乎错误LexerCore.java
来自 from gov.nist.javax.sdp.parser
,Map<Token> currentLexer
从未分配为OriginParseField.java
调用错误的构造函数,留下currentLexer
as null
,所以问题是,我怎样才能像这样修补文件?
java - java ice4j 与 nist-sdp 包冲突
在我的项目中,以下代码示例在没有 ice4j 包的情况下工作:
但是,如果我包含如下 ice4j 包:
在 gradle 中添加 ice4j 包,然后构建没有问题,但如果使用以下命令运行:
报错信息:
为什么运行时通过编译找不到方法?