When I build the project I receive the following error Error:SSL peer shut down incorrectly please let me know how to fix this error
相关问题
- How can I create this custom Bottom Navigation on
- Bottom Navigation View gets Shrink Down
- How to make that the snackbar action button be sho
- Listening to outgoing sms not working android
- How to create Circular view on android wear?
My problem was solved
Clean Project
and then `Rebuild Project.. Hope this helps you,,after testing other answers and nothing happened, I try a trick open another project that is synced successfully, find gradle version and gradle plugin version and use those in current project
just copy gradle version and gradle plugin version and use them in other project and sync
You have a slow Internet Connection & Your Android Studio Build got interrupted. Try to build in offline mode or fix your internet
Files -> Invalidate cashes / restart -> Invalidate and Restart.
This will solve the problem.
I don't know if it has to do, but I removed the VCS and resynced, it took a lot of time, then I clicked on the syncing process and I resumed something that was paused. Then it worked.
It's probably a certificate problem, I had similar issue with Android Studio and I solved it by following these steps:
1 - Open
gradle-wrapper-properties
file and modifyhttps://
tohttp://
2 - Force using
http
instead ofhttps
in Android SDK Manager, just click on SDK Manager icon above on Android Studio Toolbar and go toSDK Update Sites
tab.3 - Go to File -> Settings. In the IDE Settings section select Server Certificates, then check
accept non-trusted certificates automatically
. If the problem persist, then you should add the certificates to Android Studio, like *.google.com certificate. In my case I tried to add multiple certificates but I still get SSL Error, After I opened https://services.gradle.org in my browser and I imported the certificate to Android Studio, Anyhow adding this as an SSL exception resolved the issue for me.