我想在安卓设备上使用assert obj != null : "object cannot be null"。断言似乎不起作用,所以我在网上搜索,找到了这个本地解决方案:
assert obj != null : "object cannot be null"
adb shell setprop debug.assert 1
它可以在我的本地机器上工作。
我想使用我的Eclipse项目运行这个命令(所以它应该在源代码控制中)。我该怎么做呢?
https://stackoverflow.com/questions/6176441
相似问题