The Wayback Machine - https://web.archive.org/web/20200528130905/https://github.com/square/leakcanary/issues/1754
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile error #1754

Open
Walll-E opened this issue Feb 13, 2020 · 6 comments
Open

Compile error #1754

Walll-E opened this issue Feb 13, 2020 · 6 comments

Comments

@Walll-E
Copy link

@Walll-E Walll-E commented Feb 13, 2020

Exception in thread "main" java.lang.NullPointerException: Couldn't find outer class leakcanary/internal/activity/screen/HeapAnalysisFailureScreen$createView$1$1 of leakcanary/internal/activity/screen/HeapAnalysisFailureScreen$createView$1$1$1
at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:1079)
at com.google.devtools.build.android.desugar.ClassVsInterface.isOuterInterface(ClassVsInterface.java:56)
at com.google.devtools.build.android.desugar.InterfaceDesugaring.visitOuterClass(InterfaceDesugaring.java:246)
at org.objectweb.asm.ClassReader.accept(ClassReader.java:638)
at org.objectweb.asm.ClassReader.accept(ClassReader.java:500)
at com.google.devtools.build.android.desugar.Desugar.desugarClassesInInput(Desugar.java:477)
at com.google.devtools.build.android.desugar.Desugar.desugarOneInput(Desugar.java:361)
at com.google.devtools.build.android.desugar.Desugar.desugar(Desugar.java:314)
at com.google.devtools.build.android.desugar.Desugar.main(Desugar.java:711)

@Walll-E Walll-E added the type: bug label Feb 13, 2020
@pyricau
Copy link
Member

@pyricau pyricau commented Feb 13, 2020

This looks like a bug in desugar, which you should file to Google. Can you provide details on the version of Gradle you used and its configuration, as well as the version of LeakCanary? Also ideally if you could reproduce this with a sample project and provide it, it would be helpful. Without all this information there's not much we can do.

@EricLi22
Copy link

@EricLi22 EricLi22 commented Feb 18, 2020

This looks like a bug in desugar, which you should file to Google. Can you provide details on the version of Gradle you used and its configuration, as well as the version of LeakCanary? Also ideally if you could reproduce this with a sample project and provide it, it would be helpful. Without all this information there's not much we can do.

I have the same problemg . @pyricau
distributionUrl=https://services.gradle.org/distributions/gradle-4.4.1-all.zip
classpath 'com.android.tools.build:gradle:3.1.4'
Android Studio 3.5.3
debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.2'

@pyricau
Copy link
Member

@pyricau pyricau commented Feb 19, 2020

Can you reproduce this with a sample project?

@pyricau pyricau closed this Feb 19, 2020
@pyricau pyricau reopened this Feb 19, 2020
@pyricau
Copy link
Member

@pyricau pyricau commented Mar 19, 2020

Closing due to no response. Happy to take a look if someone can provide a sample project that reproduces this issue.

@pyricau pyricau closed this Mar 20, 2020
@roman-nevr
Copy link

@roman-nevr roman-nevr commented Apr 13, 2020

I have the same issue with Proguard but with R8 everything is fine. unfortunately I can't use R8 yet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.