Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
walkermi opened this issue Jan 28, 2016 · 2 comments
Open

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

walkermi opened this issue Jan 28, 2016 · 2 comments

Comments

@walkermi
Copy link

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才能编译通过。

@dourgulf
Copy link
Owner

是的

@dourgulf
Copy link
Owner

需要JDK1.7的语法支持 -- new的时候省略模板参数

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants