SPLUNK MINT throwing ssl error in Android studio

181 Views Asked by At

when I run my program its throwing "ssl error" and "remote host terminated the handshake".

Currently I am using the below library in build.gradle. I have tried upgrading to 5.2.5 but in its website it shows they have stopped the service. Even tried other methods but nothing worked. How can I solve this?

repositories

{
url "https://mint.splunk.com/gradle/"
}

dependency

{
implementation 'com.splunk.mint:mint:4.4.0'
}

1)Tried adding

System.setProperty("https.protocols", "TLSv1,TLSv1.1,TLSv1.2");

  1. removed .gradle and .idea and ran the code
  2. changed the sdk
  3. accept non-trusted certificates automatically
  4. added
systemProp.http.proxyHost=x
systemProp.https.proxyPort=y
systemProp.https.proxyHost=x
systemProp.http.proxyPort=y

but this throws error as x is not recognised

0

There are 0 best solutions below