Search code examples
androidandroid-studiogradleandroid-gradle-pluginmaven-metadata

Gradle project sync failed on Android Studio 3.1.3 (2018)


Gradle project sync failed on Android Studio. I tried to import other Gradle distributions on Android Studio via File > Settings > Build, Execution, Deployement > Gradle > Use local gradle distribution

But still the same error message : Gradle project sync failed

Any solution ? (please refer to the attached picture)

Error message 2


Solution

  • You are using a discontinued and deprecated library, where the repository URL even can't find anything related to cam2, which is shown in your "Error message 2".

    As of the README said in that repo,

    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.

    You are told what to do after that, what you need to do is follow that.