Android Studio failed to generate apk error:
Could not download error_prone_annotations.jar (com.google.errorprone:error)
Solution:
Modify the buildscript and allprojects in build.gradle file of your project:
google()jcenter()
to
maven { url ‘https://maven.aliyun.com/repository/google’ }maven { url ‘https://maven.aliyun.com/repository/jcenter’ }maven { url ‘http://maven.aliyun.com/nexus/content/groups/public’ }
Done!
Read More:
- [Solved] Windows Android Studio Cannot Start Error: Internal error. Please refer to https://code.google.com/p/android/issue
- [Solved] Android Studio Compile Error: Invalid main APK outputs : EarlySyncBuildOutput
- [Solved] Android-android studio apk Install Error: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED
- Android Studio: How to Solve APK error in mobile phone installation
- [Solved] Android Studio APK install Error: INSTALL_FAILED_CONFLICTING_PROVIDER
- Google Play googleapi: Error 403: Google Play Android Developer API has not been used in project
- How to Solve Error “Could not find com.android.tools.build:gradle:3.0.1”
- Flutter android studio runs gradle build error: Could not resolve all artifacts for configuration’:classpath’.
- [Solved] Android Studio Start Error: Missing essential plugin: org.jetbrains.android Please reinstall Android
- [Solved] Android app development version update failed, Android – error: task execution failed ‘: app: com
- Android studio version 3.0 import version 2.2.2 error Error:This Gradle plugin requires Studio 3.0 minimum
- Using Jenkins to compile APK Error [How to Solve]
- Ionic3 update open apk android 8.0 error FileUriExposedException
- GPG error:http://dl.google.com/linux/chrome/deb stable InRelease
- [Solved] Android Studio 4.1 get manifestOutputDirectory error
- [Solved] Android Studio Compile Error: Could not determine java version from ‘11.0.8‘.
- [Solved] Failed to apply plugin appears when Android studio imports a project
- [Solved] Matlab Code generate error: failed to generate all binary outputs
- Android Studio Error: String index out of range 0 [How to Solve]
- Android Studio: Gradle project sync failed [How to Solve]