Gradle Android Studio 3.1.3 (2018) 项目同步失败

Gradle project sync failed on Android Studio 3.1.3 (2018)

Gradle 项目同步在 Android Studio 上失败。 我尝试通过文件 > 设置 > 构建、执行、部署 > Gradle > 使用本地 gradle 分发

在 Android Studio 上导入其他 Gradle 分发

但仍然是相同的错误信息:Gradle项目同步失败

有什么解决办法吗? (请参考附图)

Error message 2

您正在使用 discontinued and deprecated library, where the repository URL 甚至找不到任何与 cam2 相关的内容,这显示在您的“错误消息 2”中。

截至该回购中的README

This library is discontinued and deprecated. New projects should look elsewhere, and existing projects should plan on migrating to something else.

Options include:

If you wish to continue exploring this library, read on.

The issue tracker for this repository will be turned off on 1 December 2017. The repository itself will be made private on 1 September 2018.

你被告知之后要做什么,你需要做的就是按照那个去做。