环境:mac idea java
使用gradle导入的依赖:
io.agora:authentication:2.0.0
会出现警告:
Errors occurred while build effective model from /Users/ganguo/.gradle/caches/modules-2/files-2.1/io.agora/authentication/2.0.0/6acb0b45863dbfe8c34e19a5ef57ec2c0ad29887/authentication-2.0.0.pom:
'modelVersion' must be one of [4.0.0] but is '2.0.0'. in io.agora:authentication:2.0.0
运行示例代码报错:
该报错看起来是编译环境的问题,你清空一下电脑上的示例代码包,然后重新下载这个Demo跑跑看呢? https://github.com/AgoraIO/Tools/blob/master/DynamicKey/AgoraDynamicKey/java/src/main/java/io/agora/sample/RtcTokenBuilder2Sample.java
此外,这里有一篇详细的教程,以供参考: https://www.rtcdeveloper.cn/cn/community/blog/25430
这个是JDK 17 如果本地使用JDK 8执行,会报上面的错误,公司目前只能JDK8不能升级, 这个怎么解决呢?