在哪里可以找到`缩小期间发现警告'的警告? [英] Where to find the warning of `Warnings found during shrinking`?

查看:355
本文介绍了在哪里可以找到`缩小期间发现警告'的警告?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 <$>在我的Android Gradle中添加RxAndroid和Retrofit库并进行编译后,我得到了下面的错误信息。 c $ c>错误:任务
'执行失败:app:transformClassesWithNewClassShrinkerForProductionDebug'。
>收缩时发现警告,请使用-twittwarn或-ignorewarnings来抑制它们。

在我的调试中,我使用

  minifyEnabled true 
useProguard false

我相信我可以使用 -dontwarn ignorewarnings 来继续编译并让编译继续。但我想知道那是什么警告。我在哪里可以找到警告?

解决方案

找到它了。只需要打开 Gradle Console (通常是右下角的一个标签)来查看Gradle日志。



据说

 失败:生成失败,出现异常。 

*出错:
任务
'执行失败:app:transformClassesWithNewClassShrinkerForProductionDebug'。
>收缩时发现警告,请使用-twittwarn或-ignorewarnings来抑制它们。

*尝试:
使用--stacktrace选项运行以获取堆栈跟踪。使用--info或--debug选项运行以获取更多日志输出。

或者,我可能只需要运行 gradlew - debug 选项。 / gradlew:app:transformClassesWithNewClassShrinkerForInternalDebug --debug


After adding RxAndroid and Retrofit library to my gradle, and compile, I got the below error, shows in my Android Studio Message panel.

Error:Execution failed for task 
':app:transformClassesWithNewClassShrinkerForProductionDebug'.
> Warnings found during shrinking, please use -dontwarn or -ignorewarnings to suppress them.

In my Debug, I use

        minifyEnabled true
        useProguard false

I believe I could use -dontwarn or ignorewarnings to suprress and let the compilation continue. But I would like to know what warnings was that. Where could I find the warning?

解决方案

Found it. Just need to open the Gradle Console (normally a tab at the right bottom) to look at the Gradle Log.

It is stated

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task 
':app:transformClassesWithNewClassShrinkerForProductionDebug'.
> Warnings found during shrinking, please use -dontwarn or -ignorewarnings to suppress them.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

Optionally, I could just need to run the gradlew on command line with the --debug option.

./gradlew :app:transformClassesWithNewClassShrinkerForInternalDebug --debug

这篇关于在哪里可以找到`缩小期间发现警告'的警告?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆