-1

I have an error that i don't know what is wrong. I am using an old android studio 2.3.3 and my application is for old android so need to keep it that way.

I have my project on old computer which working fine when gradle syncing but when running on the different machine i have this error

> Gradle sync failed: Cause: hostname in certificate didn't match:
> <jcenter.bintray.com> != <*.jfrog.io> OR <*.jfrog.io> OR
> <*.int.jfrog.io> OR <jfrog.io> OR <*.pe.jfrog.io>
>               Consult IDE log for more details (Help | Show Log)

The whole project is untouch from new and old pc so i would think it should be working fine. Same as my colleague who have the same machine also working fine.

Does anyone can give a direction of what do i need to fix this? or need more detail for this error

1
  • What do the more details in the IDE log say? Commented Feb 26 at 4:48

1 Answer 1

2

This is probably due to the fact that JCenter doesn't exist anymore. While on the old machine the dependencies are cached, Gradle fails to download them on the new PC.

  1. Remove jcenter() from the Gradle build script and add mavenCentral() if it isn't there
  2. Look through your dependencies on mvnrepository.com and make sure all of them are available (including version) on some repository other than JCenter
  3. If the specific old version is not available you could try to update to a newer version
  4. If a dependency is nowhere to be found, you could try to copy the Gradle cache to the new PC
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.