How to solve the failed verification with zipalign?

陌路散爱 提交于 2019-12-03 15:11:43

Seems like gradle has pushed a new version without the zipalign task. I had the same issue after changing this:

classpath 'com.android.tools.build:gradle:2.+'

to

classpath 'com.android.tools.build:gradle:2.1.2'

The problem was solved for me.

Chen is right. When you upgrade your AS, you need to check your build.grade.

buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle:2.1.2' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } }

check that gradle version is 2.1.2 or not. I try 2.2.0-alpha3, and always get zipalign fialed. Just downgrade grade version to 2.1.2 Then solve this problem.

Try it.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!