Problem: Recently, when doing a project, an error occurred in the online package of release:
Execution failed for task ':app:uploadCrashlyticsMappingFileRelease'
Reason: This problem is caused by the use of Google’s firebase library, which is the culprit:
com.google.firebase:firebase-crashlytics
Solution: Add the following code to Android {} of gradle of app
gradle.taskGraph.whenReady {
tasks.each { task ->
if (task.name.contains("uploadCrashlyticsMappingFileRelease")) {
task.enabled = false
}
}
}
Note: this method can only solve this issue temporary, if you know other solutions, please leave a comment and let me know!
Read More:
- [Solved] android Execution failed for task ‘:app:processDebugManifest‘
- [Solved] SpringBoot Task Error: Unexpected error occurred in scheduled task
- [Solved] Hive Run SQL error: mapreduce failed to initiate a task
- Doris streamload task reported an error connection reset [How to Solve]
- How to Solve Flynk Task Java verifyerror 209 error
- [Solved] Jenkins error: Asynchronous execution failure
- [Solved] Tesseract ocr error: JFIF APP0 must be first marker after SOI
- [Solved] IDEA jsp File Error: pageContext.setAttribute(“APP_PATH“,request.getContextPath());
- [Solved] ERROR o.s.s.s.TaskUtils$LoggingErrorHandler – Unexpected error occurred in scheduled task.
- Three ways of thread sequence alternate execution in Java lock free programming
- [Solved] Flyway Error: Detected applied migration not resolved locally:2 and the execution script error
- Java uses single thread pool to realize multi thread sequential execution (non alternating, non synchronous)
- [Solved] Tomcat Startup Error: A child container failed during start、LifecycleException: Failed to start component
- [Solved] Resource compilation failed. Check logs for details.
- Maven (http://repo1.maven.org/maven2/): Failed to transfer file and PKIX path building failed: sun.secu
- [Solved] Resource compilation failed (Failed to compile values resource file…
- [Solved] Rabbitmq injection failed, bean creation failed, error creating bean with name ‘rabbitconnectionfactory’‘
- [Solved] Pycharm Failed to Upload: Upload to *** failed. Could not list the contents of folder “sftp
- [Solved] SpringBoot Integrate ES Error: Elasticsearch health check failed
- Gradle Compile Error: compileJava FAILED [How to Solve]