Skip to content

Instantly share code, notes, and snippets.

@below
Created March 3, 2017 11:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save below/6c96ad38447d418899f3498e54281e84 to your computer and use it in GitHub Desktop.
Save below/6c96ad38447d418899f3498e54281e84 to your computer and use it in GitHub Desktop.
Error:Unable to find method 'org.apache.http.conn.ssl.SSLConnectionSocketFactory.<init>(Ljavax/net/ssl/SSLContext;Ljavax/net/ssl/HostnameVerifier;)V'.
Possible causes for this unexpected error include:<ul><li>Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)
<a href="syncProject">Re-download dependencies and sync project (requires network)</a></li><li>The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem.
<a href="stopGradleDaemons">Stop Gradle build processes (requires restart)</a></li><li>Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of Gradle requested by the project.</li></ul>In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.
12:33 Gradle sync failed: Cause: org.apache.http.conn.ssl.SSLConnectionSocketFactory.<init>(Ljavax/net/ssl/SSLContext;Ljavax/net/ssl/HostnameVerifier;)V
@below
Copy link
Author

below commented Mar 3, 2017

In a different place:
Error:A problem occurred configuring root project 'AppName_aOS'.

Could not resolve all dependencies for configuration ':classpath'.
Could not resolve com.android.tools.build:gradle:2.2.3.
Required by:
:AppName_aOS:unspecified
> Could not resolve com.android.tools.build:gradle:2.2.3.
> org.apache.http.conn.ssl.SSLConnectionSocketFactory.(Ljavax/net/ssl/SSLContext;Ljavax/net/ssl/HostnameVerifier;)V
> Could not resolve com.android.tools.build:gradle:2.2.3.
> org.apache.http.conn.ssl.SSLConnectionSocketFactory.(Ljavax/net/ssl/SSLContext;Ljavax/net/ssl/HostnameVerifier;)V
> Could not resolve com.android.tools.build:gradle:2.2.3.
> org.apache.http.conn.ssl.SSLConnectionSocketFactory.(Ljavax/net/ssl/SSLContext;Ljavax/net/ssl/HostnameVerifier;)V
> Could not resolve com.android.tools.build:gradle:2.2.3.
> org.apache.http.conn.ssl.SSLConnectionSocketFactory.(Ljavax/net/ssl/SSLContext;Ljavax/net/ssl/HostnameVerifier;)V
Could not resolve com.neenbedankt.gradle.plugins:android-apt:1.8.
Required by:
:AppName: _aOS:unspecified
> Could not resolve com.neenbedankt.gradle.plugins:android-apt:1.8.
> org.apache.http.conn.ssl.SSLConnectionSocketFactory.(Ljavax/net/ssl/SSLContext;Ljavax/net/ssl/HostnameVerifier;)V
> Could not resolve com.neenbedankt.gradle.plugins:android-apt:1.8.
> org.apache.http.conn.ssl.SSLConnectionSocketFactory.(Ljavax/net/ssl/SSLContext;Ljavax/net/ssl/HostnameVerifier;)V
> Could not resolve com.neenbedankt.gradle.plugins:android-apt:1.8.
> org.apache.http.conn.ssl.SSLConnectionSocketFactory.(Ljavax/net/ssl/SSLContext;Ljavax/net/ssl/HostnameVerifier;)V
> Could not resolve com.neenbedankt.gradle.plugins:android-apt:1.8.
> org.apache.http.conn.ssl.SSLConnectionSocketFactory.(Ljavax/net/ssl/SSLContext;Ljavax/net/ssl/HostnameVerifier;)V
Could not resolve com.google.gms:google-services:3.0.0.
Required by:
:AppName_aOS:unspecified
> Could not resolve com.google.gms:google-services:3.0.0.
> org.apache.http.conn.ssl.SSLConnectionSocketFactory.(Ljavax/net/ssl/SSLContext;Ljavax/net/ssl/HostnameVerifier;)V
> Could not resolve com.google.gms:google-services:3.0.0.
> org.apache.http.conn.ssl.SSLConnectionSocketFactory.(Ljavax/net/ssl/SSLContext;Ljavax/net/ssl/HostnameVerifier;)V
> Could not resolve com.google.gms:google-services:3.0.0.
> org.apache.http.conn.ssl.SSLConnectionSocketFactory.(Ljavax/net/ssl/SSLContext;Ljavax/net/ssl/HostnameVerifier;)V
> Could not resolve com.google.gms:google-services:3.0.0.
> org.apache.http.conn.ssl.SSLConnectionSocketFactory.(Ljavax/net/ssl/SSLContext;Ljavax/net/ssl/HostnameVerifier;)V

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment