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.

Firebase Performance Monitoring fails on build

See original GitHub issue

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

I’m reporting an issue on a Firebase SDK, I guess so.

[REQUIRED] Step 2: Describe your environment

  • Android Studio version: 4.0, 4.1, 4.2 Preview
  • Firebase Component: Firebase Performance Monitoring
  • Component version: 19.0.8

[REQUIRED] Step 3: Describe the problem

When building the project with the Android Gradle Plugin 4.0 or + always fails:

Caused by: java.lang.IllegalStateException: Unexpected non-class file: META-INF\versions\9\org\junit\platform\commons\util\ModuleUtils$ModuleReferenceScanner.class

After a research I found some people opening questions on StackOverflow about the same topic and the only way to solve is to remove the Firebase Monitoring Library from the project

Example

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:25
  • Comments:26 (1 by maintainers)

github_iconTop GitHub Comments

15reactions
ikurekcommented, Aug 20, 2020

I’m having a common issue, after updating to Kotlin 1.4.0, issue does not happen on 1.3.72:

Caused by: org.gradle.tooling.BuildException:
    Failed to process: 
        /bitrise/src/app/build/intermediates/transforms/FirebasePerformancePlugin/debug/0
Caused by: java.lang.IllegalStateException: 
    Unexpected non-class file: 
        META-INF/versions/9/kotlin/reflect/jvm/internal/impl/serialization/deserialization/builtins/BuiltInsResourceLoader.class

Configuration:

  • Android Studio version: 4.0
  • Firebase Component: Firebase Performance Monitoring
  • Component version: 19.0.8
  • Kotlin: 1.4.0
5reactions
wispbornecommented, Aug 31, 2020

This is working for me now using Android Gradle Plugin 4.1.0-rc02 alongside Firebase Perf Plugin and Kotlin 1.4.0. classpath 'com.android.tools.build:gradle:4.1.0-rc02'

Read more comments on GitHub >

github_iconTop Results From Across the Web

Performance Monitoring troubleshooting and FAQ - Firebase
This page provides troubleshooting tips for getting started with Performance Monitoring or using Performance Monitoring features and tooling.
Read more >
Firebase performance monitoring fails to log custom trace
The method itself in the build fires correctly and does not produce any errors. However when I open the firebase console and view...
Read more >
Firebase Performance Monitoring In Flutter | by Shaiq khan
Firebase Performance Monitoring ... It is a service that encourages you to pick up an understanding of the presentation attributes of your iOS,...
Read more >
[Performance Monitoring Plugin (Firebase)] Unable to ...
This issue seems to be related with the unsupported Firebase Mobile plugin that you mention you're using. Looking at the error on the...
Read more >
DexArchiveBuilderException with Firebase Performance ...
... -with-firebase-performance-monitoring-library-r8-fail: I pretty much cannot build the project if I even just include the Firebase performance library, ...
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