【问题标题】:I am getting following error while build my signed apk in my app在我的应用程序中构建签名的 apk 时出现以下错误
【发布时间】:2016-10-27 13:58:35
【问题描述】:

我的控制台出现以下错误,请帮助我,发布到应用商店时是否有任何问题。(我为我的英语道歉,这是我第一个使用 android studio 的应用) MoreInfo

Information:Gradle tasks [:app:assembleRelease]
Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
Error:(android.support.v4.app.ab) that doesn't come with an
Error:associated EnclosingMethod attribute. This class was probably produced by a...

【问题讨论】:

  • 此解决方案可能会有所帮助。 stackoverflow.com/questions/36592864/…>

标签: android android-build android-studio-2.2 android-buildconfig


【解决方案1】:

只需将这些行添加到 ProGuard 配置 (app/proguard-rules.pro)

-keepattributes EnclosingMethod
-keepattributes InnerClasses
-dontoptimize

【讨论】:

  • 感谢您的回答,我必须从我的 gradle 错误“minifyEnabled false”从 true +1 获得您的部分帮助
猜你喜欢
  • 2019-07-14
  • 1970-01-01
  • 1970-01-01
  • 2023-03-26
  • 1970-01-01
  • 2020-08-17
  • 1970-01-01
  • 2021-03-31
  • 1970-01-01
相关资源
最近更新 更多