11

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?

KENdi
  • 7,576
  • 2
  • 16
  • 31
appbootup
  • 9,537
  • 3
  • 33
  • 65
  • 1
    Seeing same issue.....looks like it's known issue and fix is being worked on - https://groups.google.com/forum/#!topic/firebase-talk/JqnlnGK2ddY – John O'Reilly Jun 17 '17 at 08:39

2 Answers2

6

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') {
appbootup
  • 9,537
  • 3
  • 33
  • 65
5

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

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

rpattabi
  • 9,984
  • 5
  • 45
  • 53
fast3r
  • 1,298
  • 13
  • 15