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.

Didn't find class "com.google.type.LatLng" on path

See original GitHub issue

[REQUIRED] Step 2: Describe your environment

  • Android Studio version: 4.0.1
  • Firebase Component: 'com.google.firebase:firebase-firestore-ktx
  • Component version: 21.5.0

[REQUIRED] Step 3: Describe the problem

throws:

Caused by java.lang.ClassNotFoundException
Didn't find class "com.google.type.LatLng" on path: DexPathList...

when using the following sequence

val db = Firebase.firestore
        
db.collection("blog-posts").get()

Steps to reproduce:

run

val db = Firebase.firestore
        
db.collection("blog-posts").get()

Relevant Code:

val db = Firebase.firestore
        
db.collection("blog-posts").get()

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:24 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
ankurgecrcommented, Jul 18, 2020

I just figured it is due to following lines in my app/build.gradle file:

    configurations {
        implementation.exclude module: 'proto-google-common-protos'
        implementation.exclude module: 'protolite-well-known-types'
        implementation.exclude module: 'protobuf-lite'
    }

Now, if I don’t add these lines, I’m getting error:

Duplicate class com.google.protobuf.AbstractMessageLite found in modules jetified-protobuf-javalite-3.11.0.jar (com.google.protobuf:protobuf-javalite:3.11.0) and jetified-protobuf-lite-3.0.1.jar (com.google.protobuf:protobuf-lite:3.0.1)

and unable to compile my project.

0reactions
google-oss-botcommented, Aug 19, 2020

Since there haven’t been any recent updates here, I am going to close this issue.

@gardyna if you’re still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Didn't find class "com.google.protobuf.ByteString" - Stack ...
Thread.run(Thread.java:764) Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.protobuf.ByteString" on path: ...
Read more >
Add a Styled Map | Maps SDK for Android - Google Developers
This tutorial shows you how to add a map with custom styling to your Android app. The tutorial uses night mode as an...
Read more >
DatabaseReference | Firebase - Google
Module Index · FirebaseCore · Classes. Overview · FirebaseApp · FirebaseConfiguration · FirebaseOptions · Enumerations. Overview · FIRLoggerLevel · Type Definitions.
Read more >
Failed resolution of FirebaseInstanceId at com.Backendless ...
ClassNotFoundException: Didn't find class "com.google.firebase.iid.FirebaseInstanceId" on path: DexPathList[[zip file ...
Read more >
Let's make a form that puts current location to use in a map!
I can find what I need and get most things for a decent price. ... Finally, we create an instance of the Google...
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