[英]Can we have built 2 APK one for debug and other for test
我想知道我是否可以拥有2个apk,一个正常apk是我在要编码的程序包中构建的,而其他我希望我可以使用测试包
While you can have a separate "test" flavor , it is not a very good approach. 虽然您可以使用单独的“测试” 样式 ,但这不是一个很好的方法。
Tests should run against the same code that will go into production. 测试应该针对将要投入生产的相同代码运行。 By having a separate "test" flavor, there will be a risk of divergence between "test" and "production" code. 通过具有单独的“测试”样式,将有在“测试”和“生产”代码之间产生差异的风险。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.