Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot create tasks to upload Proguard Mapping File.java.lang.IllegalStateException: Resolving configuration 'androidTestAnnotationProcessor'

Upgraded to Android Studio 3.0 canary 3 and with it gradle-4.0-milestone-1-all Due to the new way of evaluating dependencies the current plugin used in https://firebase.google.com/docs/crash/android#uploading_proguard_mapping_files_with_gradle no longer works, running the task:

$ gradlew app:firebaseUploadReleaseProguardMapping

Yields an error:

Cannot create tasks to upload Proguard Mapping File.java.lang.IllegalStateException: Resolving configuration 'androidTestAnnotationProcessor' directly is not allowed

Any suggestions to make this work?

like image 531
appbootup Avatar asked Jun 06 '17 13:06

appbootup


2 Answers

Updates from - groups.google.com/forum/#!topic/firebase-talk/JqnlnGK2ddY

Change from

    classpath('com.google.firebase:firebase-plugins:1.1.0') {

to

    classpath('com.google.firebase:firebase-plugins:1.1.0-alpha1') {
like image 117
appbootup Avatar answered Nov 12 '22 01:11

appbootup


classpath 'com.google.firebase:firebase-plugins:1.1.5' fixes the issue.

Ref: https://firebase.google.com/docs/crash/android#known_issue

like image 20
fast3r Avatar answered Nov 12 '22 00:11

fast3r