gradle 3.0以后配置outputFileName或者outputDirectory后debug情况下出现I无法安装app-debug的错误_gradle outputfilename-CSDN博客

网站介绍:文章浏览阅读1.5k次。由于个性化配置了输出apk的文件路径和名称,导致debug安装apk失败。安装错误信息:Installation failed due to: 'Invalid File解决办法:对输出的文件路径和文件名称做release和debug的区分。android.applicationVariants.all { variant -> variant.outputs.all { if ("release".equals(variant.buildTy_gradle outputfilename