Skip to content

Compiling Firestore with AGP 8.0 cause an R8 issue #4974

@Lyokone

Description

@Lyokone

[REQUIRED] Step 2: Describe your environment

  • Android Studio version: 2022.2.1
  • Firebase Component: Firestore
  • Component version: 32.0.0

[REQUIRED] Step 3: Describe the problem

When trying to compile an application using Gradle 8.0 with Firestore I get the following issue:

ERROR: Missing classes detected while running R8. Please add the missing classes or apply additional keep rules that are generated in PATH/build/app/outputs/mapping/release/missing_rules.txt. ERROR: R8: Missing class org.kxml2.io.KXmlParser,org.kxml2.io.KXmlSerializer (referenced from: java.lang.Iterable io.grpc.ServiceProviders.getCandidatesViaServiceLoader(java.lang.Class, java.lang.ClassLoader) and 1 other context) 

Steps to reproduce:

Switch to AGP 8.0.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions