question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

releaseNotesFile processed incorrectly in gradle app distribution plugin

See original GitHub issue

[READ] Step 1: Are you in the right place?

Yes

The plugin firebase-appdistribution-gradle:3.0.1 seems to have a problem processing releaseNotesFile. There could be other issues with other plugin vars but this is the one I can distinctly verify and document.

[REQUIRED] Step 2: Describe your environment

  • Android Studio version: v4.2.2
  • Firebase Component: firebase-appdistribution-gradle
  • Component version: 3.0.1

[REQUIRED] Step 3: Describe the problem

firebase-appdistribution-gradle:3.0.1 is what seems to break my automated builds that upload to Firebase. I’ve verified that v3.0.0 worked just fine. However, 3.0.1 seems to be interpreting the vars passed to the plugin in an odd way. We generally use System.env to pass in vars but I removed that and hardcoded a path to releaseNotesFile and still received a failure to read that file from the plugin. The failure is because the plugin has prepended a path to the path I included in the plugin vars resulting in an invalid filepath.

Steps to reproduce:

upgrade to firebase-appdistribution-gradle:3.0.1 from 3.0.0 in build.gradle

Utilize the plugin in app/build.gradle

        prototype {
            minSdkVersion 24
            targetSdkVersion 31
            applicationId '<your android applicationId>'
            firebaseAppDistribution {
                appId="<your firebase appId>"
                releaseNotesFile="C:\\jenkins\\workspace\\Android-PR/release_notes.txt"
                groups="test-automation"
            }
        }

Trigger a build on Jenkins. Our build system is a Window box. The build will fail at the Firebase upload step with the message below:

14:45:32 * What went wrong:
14:45:32 Execution failed for task ':app:appDistributionUploadPrototypeRelease'.
14:45:32 > Could not read content from C:\jenkins\workspace\Android-PR\Haiku/C:\jenkins\workspace\Android-PR/release_notes.txt

You can see the path I declared through the plugin is very different from the one the plugin ultimately used.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
damon-beavencommented, Jun 16, 2022

@tagboola I was finally able to get back to this task and test your release. In my limited testing, this seems to resolve the issue on my end. Thanks so much!

1reaction
tagboolacommented, May 31, 2022

Hi @damon-beaven. We shipped version 3.0.2 which fixes this issue. Please reach out it if you run into any issues after upgrading!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Distribute Android apps to testers using Gradle - Firebase
This guide describes how to distribute APKs to testers using the App Distribution Gradle plugin. Before you begin. If you haven't already, add...
Read more >
Firebase App Distribution using the Gradle plugin in Codemagic
Your app will appear in the Firebase App Distribution console immediately. There is no review, no long processing and it is ready for...
Read more >
firebaseAppDistribution with Github Actions throwing error ...
I'm using google play plugin so it should get the app id automatically. https://firebase.google.com/docs/app-distribution/android/distribute- ...
Read more >
Known issues with Android Studio and Android Gradle Plugin
To fix this, click Run > Edit Configurations and remove the incorrectly-created configurations. Adding Java breakpoints while debugging native code. While your ...
Read more >
Using Firebase App Distribution with Gradle in Android Projects
Authentication with your Firebase project is a must in order to use the Gradle plugin. There are 3 options for authentication with Firebase....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found