有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

java 安卓 6.0生成错误:找不到包

我正在我的主机上构建安卓6.0。首先,错误表明我的主机上不存在很多包

frameworks/opt/net/voip/src/java/安卓/net/sip/SipProfile.java:26: error: package javax.sip does not exist
import javax.sip.InvalidArgumentException;
                ^
frameworks/opt/net/voip/src/java/安卓/net/sip/SipProfile.java:27: error: package javax.sip does not exist
import javax.sip.ListeningPoint;
                ^
frameworks/opt/net/voip/src/java/安卓/net/sip/SipProfile.java:28: error: package javax.sip does not exist
import javax.sip.PeerUnavailableException;

最后,由于未找到符号错误,生成失败

  symbol:   class RequestEvent
  location: class SipSessionGroup
frameworks/opt/net/voip/src/java/com/安卓/server/sip/SipSessionGroup.java:1761: error: cannot find symbol
        } else if (evt instanceof ResponseEvent) {
                                  ^
  symbol:   class ResponseEvent
  location: class SipSessionGroup
frameworks/opt/net/voip/src/java/com/安卓/server/sip/SipSessionGroup.java:1762: error: cannot find symbol
            return ((ResponseEvent) evt).getResponse().toString();
                     ^
  symbol:   class ResponseEvent
  location: class SipSessionGroup
Note: frameworks/opt/net/voip/src/java/com/安卓/server/sip/SipService.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: frameworks/opt/net/voip/src/java/com/安卓/server/sip/SipService.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
582 errors
make: *** [out/target/common/obj/JAVA_LIBRARIES/voip-common_intermediates/classes-full-debug.jar] Error 41

#### make failed to build some targets (01:26 (mm:ss)) ####

我完全遵循安卓官方website上的构建步骤

我还根据需要使用openJDK 1.7。这是我的jdk版本:

alan@new$java -version
java version "1.7.0_101"
OpenJDK Runtime Environment (IcedTea 2.6.6) (7u101-2.6.6-0ubuntu0.14.04.1)
OpenJDK 64-Bit Server VM (build 24.95-b01, mixed mode)

有人能给我一个提示吗

更新

似乎javax.sip包未包含在jdk1.7中,我在哪里可以找到该包?现在,我认为这是这个问题的关键


共 (0) 个答案