无法在 android 4.4.2 上调试构建应用程序,但可以在 android 6.0.1 上运行
Cant debug build app on android 4.4.2 but it works on android 6.0.1
我得到的错误是:(这是一个大项目)
Note: there were 10 references to unknown classes.
You should check your configuration for typos.
(http://proguard.sourceforge.net/manual/troubleshooting.html#unknownclass)
Note: there were 239 unkept descriptor classes in kept class members.
You should consider explicitly keeping the mentioned classes
(using '-keep').
(http://proguard.sourceforge.net/manual/troubleshooting.html#descriptorclass)
Note: there were 27 unresolved dynamic references to classes or interfaces.
You should check if you need to specify additional program jars.
(http://proguard.sourceforge.net/manual/troubleshooting.html#dynamicalclass)
Warning: there were 2292 unresolved references to classes or interfaces.
You may need to add missing library jars or update their versions.
If your code works fine without the missing classes, you can suppress
the warnings with '-dontwarn' options.
(http://proguard.sourceforge.net/manual/troubleshooting.html#unresolvedclass)
Warning: there were 241 unresolved references to program class members.
Your input classes appear to be inconsistent.
You may need to recompile the code.
(http://proguard.sourceforge.net/manual/troubleshooting.html#unresolvedprogramclassmember)
Warning: Exception while processing task java.io.IOException: Please correct the above warnings first.
:app:transformClassesAndResourcesWithProguardForDebug FAILED
FAILURE: Build failed with an exception.
Gradle 有一个很大的日志输出,我知道我必须最终清理 proguard-rules.pro 但为什么它在 android 6.0.1 上工作而不在android 4.4.2。日志以 "Build failed with an exception" 结尾,我尝试 "Run with --stacktrace " 但看不到异常
我解决了。
原因是在应用程序构建中 gradle 我使用的是 play-services 11.4.0 和 firebase 11.4.2。
不知何故我错过了同步它们以使用相同的版本..
我得到的错误是:(这是一个大项目)
Note: there were 10 references to unknown classes.
You should check your configuration for typos.
(http://proguard.sourceforge.net/manual/troubleshooting.html#unknownclass)
Note: there were 239 unkept descriptor classes in kept class members.
You should consider explicitly keeping the mentioned classes
(using '-keep').
(http://proguard.sourceforge.net/manual/troubleshooting.html#descriptorclass)
Note: there were 27 unresolved dynamic references to classes or interfaces.
You should check if you need to specify additional program jars.
(http://proguard.sourceforge.net/manual/troubleshooting.html#dynamicalclass)
Warning: there were 2292 unresolved references to classes or interfaces.
You may need to add missing library jars or update their versions.
If your code works fine without the missing classes, you can suppress
the warnings with '-dontwarn' options.
(http://proguard.sourceforge.net/manual/troubleshooting.html#unresolvedclass)
Warning: there were 241 unresolved references to program class members.
Your input classes appear to be inconsistent.
You may need to recompile the code.
(http://proguard.sourceforge.net/manual/troubleshooting.html#unresolvedprogramclassmember)
Warning: Exception while processing task java.io.IOException: Please correct the above warnings first.
:app:transformClassesAndResourcesWithProguardForDebug FAILED
FAILURE: Build failed with an exception.
Gradle 有一个很大的日志输出,我知道我必须最终清理 proguard-rules.pro 但为什么它在 android 6.0.1 上工作而不在android 4.4.2。日志以 "Build failed with an exception" 结尾,我尝试 "Run with --stacktrace " 但看不到异常
我解决了。 原因是在应用程序构建中 gradle 我使用的是 play-services 11.4.0 和 firebase 11.4.2。 不知何故我错过了同步它们以使用相同的版本..