It happened to me, and turned out it was because of Charles Proxy.
Charles Proxy is a HTTP debugging proxy server application
Solution (only if you have Charles Proxy installed):
- Shut down Charles Proxy;
- Restart Android Studio.
More Related Contents:
- OpenCV in Android Studio
- Android Studio suddenly cannot resolve symbols
- How to update gradle in android studio?
- Android studio add external project to build.gradle
- Android- Error:Execution failed for task ‘:app:transformClassesWithDexForRelease’
- How to configure gradle to work “offline” (using cached dependencies)
- You have not accepted the license agreements of the following SDK components [duplicate]
- Android Studio – mergeDebugResources exception
- Using ViewPagerIndicator library with Android Studio and Gradle
- Android Studio fails to debug with error org.gradle.process.internal.ExecException
- How to build an android library with Android Studio and gradle?
- Android Gradle Apache HttpClient does not exist?
- Duplicate files copied (Android Studio 0.4.0) [duplicate]
- Android Studio build fails with “Task ” not found in root project ‘MyProject’.”
- Upgraded to Android studio 3.4 – Aapt2InternalException: AAPT2: Daemon startup failed
- no cached version available for offline mode
- Gradle Duplicate Entry: java.util.zip.ZipException
- Gradle 0.9.+/0.9.2 error: Unable to load class ‘com.android.builder.testing.api.DeviceProvider’
- Recompile with -Xlint in Android studio
- How to include a library module dependency in an Android Studio project?
- Android Studio: Exclude resource file under resources sourceSets
- build.gradle and project libs
- Android Studio – Error:Program type already present
- First launch take long time (ClassLoader referenced unknown path)
- How to build a ‘release’ APK in Android Studio?
- Android Studio: how to generate signed APK using Gradle?
- Android Studio and Gradle build error
- Gradle flavors for android with custom source sets – what should the gradle files look like?
- Build variants in Gradle for a Library Project in Android
- Importing gradle project to eclipse