Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot see Firebase upload mapping file task

Uploading mapping file with command:

./gradlew -PFirebaseServiceAccountFilePath=<path> \ :app:firebaseUploadFreeReleaseProguardMapping

Runs successfully but i cannot see any tasks starting withfirebaseUpload in my app:tasks. Do somebody know why?

like image 846
VizGhar Avatar asked Aug 23 '26 10:08

VizGhar


2 Answers

We also have encountered this problem. Solution is to add minifyEnabled in your apps build.gradle like so:

 buildTypes {
    release {
    ...
    minifyEnabled true
    ...
    }
 }

And sync your project, then you will have those tasks created.

like image 52
MatBos Avatar answered Aug 24 '26 23:08

MatBos


@MatBos thanks for the hint. This didn't solve the problem for me.

But I had this cause:

buildTypes {
  debug {
    minifyEnabled true
    useProguard false
  }
}

When I change minifyEnabled to false it is working again!

Disabling proguard in debug mode, disabled also the firebase tasks for the production code...

like image 44
3dmg Avatar answered Aug 25 '26 01:08

3dmg



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!