Error:Cause: unable to find valid certification path to requested target

前端 未结 22 1076
无人及你
无人及你 2020-11-29 05:47

I got the following Error in android Studio 2.2.3 when I sync gradle.

Error:Cause: unable to find valid certification path to requested target

相关标签:
22条回答
  • 2020-11-29 06:13

    If you re in your office ,use your smartphone network. I think It will work.

    0 讨论(0)
  • 2020-11-29 06:13

    Switching to the smartphone network & disabling the web security tool installed on my computer solved the problem.

    0 讨论(0)
  • 2020-11-29 06:14

    change dependencies from compile to Implementation in build.gradle file

    0 讨论(0)
  • 2020-11-29 06:14

    This issue is related to network connectivity if not solved adding maven { url "http://jcenter.bintray.com"} at project level.

    Just try to change your network and sync the gradle, should fix this issue for sure.

    0 讨论(0)
  • 2020-11-29 06:15
    1. If you are using kotlin and its showing this error please update your kotlin gradle plugin in project level build.gradle.

    2. The certificate expired case : Go to certificates in settings and check if any certificate is expired if any, delete that certificate and clean and sync it will work.

    3. Dependencies- unable to find case : In this case delete that dependency and sync the project then add the dependency again with some another version(downgraded version) and sync the project it will work.

    These three cases i faced and wasted so much time, hope this will help someone and save someones day.

    Thankyou - happy coding**:-)**

    0 讨论(0)
  • 2020-11-29 06:15

    Simple Invalidate/Restart fixed it for me. No other actions were taken

    0 讨论(0)
提交回复
热议问题