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

运行或打包时出现build failed #6

Open
ZTnezftt opened this issue Sep 28, 2020 · 2 comments
Open

运行或打包时出现build failed #6

ZTnezftt opened this issue Sep 28, 2020 · 2 comments

Comments

@ZTnezftt
Copy link

你好,
请问下,我在编译或者打包的过程中,有几率会出现编译失败的情况,但这个情况不是每次都出现,而且只要多运行几次就能编译过去了,现在用的是最新的版本

Task :app:transformClassesWithDebounceForRelease
Wrote file status to file:///Users/zhangtao/project/YBJK_Android/app/build/outputs/debounce/logs/release/files.txt
====> COST: 18147 msavaResource

Task :app:outputMappingForRelease FAILED
Wrote TXT report to file:///Users/zhangtao/project/YBJK_Android/app/build/outputs/debounce/logs/release/classes.txt

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:outputMappingForRelease'.

Cannot invoke method hasDebouncedMethod() on null object

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 1m 40s

@1951FDG
Copy link

1951FDG commented Feb 28, 2021

Hi,

I also notice this sometimes, cleaning the project and making the project again helps

@SmartDengg I also noticed that I had to do Invalidate Caches / Restart... whenever I make changes to the exclusions specified, for the new exclusions to be effective

@SmartDengg thanks for this Gradle plugin, I've been looking for something like this for a very long time

@1951FDG
Copy link

1951FDG commented Jun 2, 2021

I still get this error with the latest release:

Task :app:outputMappingForDebug FAILED
Wrote TXT report to file:///Users/derrickcroes/developer/openpyn-nordvpn-juiceSSH/app/build/outputs/debounce/logs/debug/classes.txt

Execution failed for task ':app:outputMappingForDebug'.

Cannot invoke method hasDebouncedMethod() on null object

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants