Proguard mapping upload using gradle 4.0

1,120 views
Skip to first unread message

Yuval Peress

unread,
May 25, 2017, 10:03:02 AM5/25/17
to Firebase Google Group
I updated to Android Studio 3.0 canary 1 and with it Gradle 4.0-milestone-1. 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

Is there an ETA for an updated plugin version that's compatible with Gradle 4.0? Is there anything I can do in the mean time to get this to work?

Aarthi Balachander

unread,
May 25, 2017, 7:06:32 PM5/25/17
to Firebase Google Group
Hi Yuval,
I was able to recreate the problem but it's not because of Gradle 4.0.  If possible, can you try using the classpath 'com.android.tools.build:gradle:2.3.2' instead of classpath 'com.android.tools.build:gradle:3.0.0-alpha1'?

Let me know if that didn't fix it.
Thanks,
Aarthi

Colin White

unread,
Jun 16, 2017, 4:31:59 PM6/16/17
to Firebase Google Group
Looks like this is still an issue in 'com.android.tools.build:gradle:3.0.0-alpha4'. Are you sure it's an issue with the build tools and not the Firebase plugin?

If there isn't already a ticket for this I'll create one.

Aarthi Balachander

unread,
Jun 16, 2017, 5:06:01 PM6/16/17
to fireba...@googlegroups.com
It's an issue with our plugin not being compatible with the newest build tools version and we're working on a fix for the newest build tools version.  Right now, the plugin supports 2.3.2 and we'll be releasing a new plugin for 3.0.0 and above shortly.
Thanks!
Aarthi

--
You received this message because you are subscribed to a topic in the Google Groups "Firebase Google Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/firebase-talk/JqnlnGK2ddY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to firebase-talk+unsubscribe@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/981b803e-9d54-4760-a1c6-6f7e6d754bce%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Peter Havenga

unread,
Jun 22, 2017, 4:47:01 PM6/22/17
to Firebase Google Group
Hello Aarthi,

I'm also running into this issue, is there an ETA on the new Firebase plugin that fixes this?

Best regards,
Peter

Op vrijdag 16 juni 2017 23:06:01 UTC+2 schreef Aarthi Balachander:
It's an issue with our plugin not being compatible with the newest build tools version and we're working on a fix for the newest build tools version.  Right now, the plugin supports 2.3.2 and we'll be releasing a new plugin for 3.0.0 and above shortly.
Thanks!
Aarthi
On Fri, Jun 16, 2017 at 11:20 AM, Colin White <colinr...@gmail.com> wrote:
Looks like this is still an issue in 'com.android.tools.build:gradle:3.0.0-alpha4'. Are you sure it's an issue with the build tools and not the Firebase plugin?

If there isn't already a ticket for this I'll create one.


On Thursday, 25 May 2017 19:06:32 UTC-4, Aarthi Balachander wrote:
Hi Yuval,
I was able to recreate the problem but it's not because of Gradle 4.0.  If possible, can you try using the classpath 'com.android.tools.build:gradle:2.3.2' instead of classpath 'com.android.tools.build:gradle:3.0.0-alpha1'?

Let me know if that didn't fix it.
Thanks,
Aarthi
On Thursday, May 25, 2017 at 7:03:02 AM UTC-7, Yuval Peress wrote:
I updated to Android Studio 3.0 canary 1 and with it Gradle 4.0-milestone-1. 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

Is there an ETA for an updated plugin version that's compatible with Gradle 4.0? Is there anything I can do in the mean time to get this to work?

--
You received this message because you are subscribed to a topic in the Google Groups "Firebase Google Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/firebase-talk/JqnlnGK2ddY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to firebase-tal...@googlegroups.com.

Aarthi Balachander

unread,
Jun 23, 2017, 12:00:46 AM6/23/17
to fireba...@googlegroups.com
Hi Peter,
I'm hoping to push out a new plugin by early next week.  I'll definitely update the thread when that's done.  Thank you all for your patience!
Aarthi

To unsubscribe from this group and all its topics, send an email to firebase-talk+unsubscribe@googlegroups.com.

To post to this group, send email to fireba...@googlegroups.com.

Peter Havenga

unread,
Jul 4, 2017, 3:24:29 PM7/4/17
to Firebase Google Group
Hi Aarthi, can you provide us with an update on the current status? 
Thanks,
Peter

Op vrijdag 23 juni 2017 06:00:46 UTC+2 schreef Aarthi Balachander:

Aarthi Balachander

unread,
Jul 7, 2017, 7:02:54 PM7/7/17
to fireba...@googlegroups.com
Hi all,
Please check out the 1.1.0-alpha1 plugin to get past the issue with the Android build tools Gradle plugin.
Thanks!

To unsubscribe from this group and all its topics, send an email to firebase-talk+unsubscribe@googlegroups.com.

To post to this group, send email to fireba...@googlegroups.com.

Peter Havenga

unread,
Jul 8, 2017, 3:42:40 PM7/8/17
to Firebase Google Group
Thanks! Builds are running again and the mapping file is being uploaded successfully.

Op zaterdag 8 juli 2017 01:02:54 UTC+2 schreef Aarthi Balachander:

Sachin Shekhar R

unread,
Aug 9, 2017, 10:35:27 AM8/9/17
to Firebase Google Group
1.1.0-alpha1 -> 1.1.1
com.google.firebase:firebase-plugins:1.1.1 does not fix it. The 1.1.0-alpha1 fixes are not carried forward to 1.1.1 :(

Aarthi Balachander

unread,
Aug 9, 2017, 10:42:23 AM8/9/17
to fireba...@googlegroups.com
Hi Sachin,
Yes, since AS and the 3.0+ Gradle build tools plugin are canary and alpha versions respectively, we've released an alpha version to support them.   As soon as they have been released, we will release a non alpha plugin to support them.
Thanks,
Aarthi

kusan...@gmail.com

unread,
Oct 13, 2017, 5:59:21 PM10/13/17
to Firebase Google Group
Thing is that Oreo is out and to build Oreo targeted apps, we need to update gradle plugins and AS, beta developper tools are needed to develop for released OS, that's not normal but that's how it is... So would be good to have firebase plugins beta version to work.

Aarthi Balachander

unread,
Oct 13, 2017, 6:06:32 PM10/13/17
to fireba...@googlegroups.com, Eric Shieh
The alpha plugin versions of the Firebase Performance Plugin should support the new AS and Gradle plugins.  Are you encountering any use cases that the alpha plugins don't work?  The alpha plugins are targeted for beta releases  of AS and Gradle Plugins and the non alpha plugins are targeted for the stable releases of AS and Gradle Plugins.
Thanks,
Aarthi

To unsubscribe from this group and all its topics, send an email to firebase-talk+unsubscribe@googlegroups.com.

To post to this group, send email to fireba...@googlegroups.com.

Jorge Antonio Díaz-Benito Soriano

unread,
Nov 13, 2017, 10:38:57 AM11/13/17
to Firebase Google Group
I'm still seeing this as of firebase-plugins 1.1.4. Can I please get an update?

Simon Hardt

unread,
Nov 24, 2017, 12:08:30 PM11/24/17
to Firebase Google Group
The current version of https://firebase.google.com/docs/crash/android#known_issue states, that plugin-version 1.1.5 **can** upload the mapping-file.
Has anyone tested it yet?
Reply all
Reply to author
Forward
0 new messages