打的APK包安装后闪退,运行gradlew assembleRelease时报Task 'installRelease' not found in root project 'DemoA'. Some candidates are: 'u ninstallRelease'.



  • 在平时调试是可能正常运行的,
    打成APK包想安装到手机上时,提示“包似乎已损坏”。。
    通过CMD切到项目的Android目录 下运行gradlew assembleRelease时提示:
    Task 'installRelease' not found in root project 'DemoA'. Some candidates are: 'u
    ninstallRelease'.
    如下图:
    0_1513935936305_image.png
    请问大家有遇到同样的问题吗?你们是怎么解决的呢,谢谢!


登录后回复