Execution failed for task ‘:app:transformClassesAndResourcesWithR8ForRelease’. You can disable R8 by

  • Post author:
  • Post category:其他


今天混淆打包出卡住这个问题

Execution failed for task ‘:app:transformClassesAndResourcesWithR8ForRelease’

打包不了,解决方法:

在gradle.properties里边配置

#Disables R8 for Android Library modules only.
android.enableR8.libraries = false 
#Disables R8 for all modules.
android.enableR8 = false

查阅:

https://developer.android.google.cn/studio/releases/



版权声明:本文为Excellence1981原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。