Skip to content

请教下编译上的几个问题 #6

@walkermi

Description

@walkermi

1、请问编译最低使用SDK是4.1吗?运行平台是4.1吗?

2、/MyActivity/src/tv/inhand/rtmp/BasePacketizer.java中
public BasePacketizer() throws IOException {
localSocket = new LocalSocket();
dataQueue = new LinkedBlockingDeque(MAX_QUEUE_SIZE); // LinkedBlockingDeque<>编译失败
this.is = new ParcelFileDescriptor.AutoCloseInputStream(localSocket.getReceiver());
}
源代码是LinkedBlockingDeque<>
编译失败,提示
Type '<>' operator is not allowed for source level below 1.7

3、如果编译使用4.1,会提示
MEDIA_ERROR_SERVER_DIED cannot be resolved or is not a field
需要用4.4才能编译通过。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions