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.

Int.xdip/Int.ydip & Float.xdip/Float.ydip cause crash on Kotlin 1.4.30

See original GitHub issue

This can be easily reproduced by changing the dependency on the sample app from the module to the binary: implementation project(':contour') -> implementation 'app.cash.contour:contour:1.0.0'

Here’s the stack trace:

java.lang.NoSuchMethodError: No virtual method getYdip-dBGyhoQ(I)I in class 
Lcom/squareup/contour/sample/SampleView; or its super classes (declaration of 
'com.squareup.contour.sample.SampleView' appears in /data/app/~~0Ba-
93BI78uARYazH4agJA==/com.squareup.contour.sample-VKrVvhwusycb2ElCbF70RQ==/base.apk!classes2.dex)
        at com.squareup.contour.sample.SampleView$3.invoke(SampleView.kt:56)

Int.dip doesn’t seem to be an issue.

At least on my project, reverting to 1.4.21 fixes the issue immediately.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:6

github_iconTop GitHub Comments

4reactions
oldergodcommented, Mar 2, 2021

1.1.0 has been released.

1reaction
saketcommented, Mar 2, 2021

Yep, we’ll make a release soon!

Read more comments on GitHub >

github_iconTop Results From Across the Web

What's new in Kotlin 1.4.30
Kotlin 1.5.0 is going to deliver new language features – JVM records support, sealed interfaces, and Stable inline classes. In Kotlin 1.4.30, ...
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