首页 > 解决方案 > 提供 APK 时的 FastScroller

问题描述

当我想创建一个用于发布的 APK 时,我遇到了问题。我搜索了很多,但我没有找到我的答案。所以如果你能帮助我真的很感激。请帮我...

Information:Gradle tasks [:app:assembleRelease]
Warning:android.support.v7.widget.FastScroller: can't find referenced class android.support.v7.widget.FastScroller$State
Warning:android.support.v7.widget.FastScroller: can't find referenced class android.support.v7.widget.FastScroller$DragState
Warning:android.support.v7.widget.FastScroller: can't find referenced class android.support.v7.widget.FastScroller$AnimationState
Warning:android.support.v7.widget.FastScroller: can't find referenced class android.support.v7.widget.FastScroller$State
Warning:there were 4 unresolved references to classes or interfaces.
Warning:Exception while processing task java.io.IOException: Please correct the above warnings first.
Error:Execution failed for task ':app:transformClassesAndResourcesWithProguardForRelease'.

作业失败,详见日志信息:BUILD FAILED in 1m 42s 信息:1 错误信息:6 警告信息:查看控制台中的完整输出

标签: androiddebuggingapkrelease

解决方案


请删除您的project_name/gradle目录,设置Project structure\Project\Gradle version,然后运行/制作/生成您的 APK。例如,在我的情况下,删除buildapp/build没有解决这个问题。


推荐阅读