zoukankan      html  css  js  c++  java
  • as 打包报错

    错误:Android Error:Execution failed for task ':app:transformClassesAndResourcesWithProguardForRelease'.

    我在build文件中设置了minifyEnabled true(最小化资源包)和 shrinkResources true(去掉无用资源)

    报错原因:proguard 文件启用时报错,因为上面的设置,如果把上面的设置为false重新编译打包就可以,也就是禁用混淆文件。

    但是我还想启用混淆文件,所以另外一种方式就是在混淆文件中加入

    -ignorewarnings -keep class * { public private *; }
    

      

    然后重新编译打包就可以了!!

  • 相关阅读:
    py 5.11
    py 5.10
    py 5.9
    py 5.8
    python 5.7
    python 5.4
    python 5.3
    python 5.2
    python 4.28
    python 4.27
  • 原文地址:https://www.cnblogs.com/blog4wei/p/9342574.html
Copyright © 2011-2022 走看看