项目场景:
Android studio
进行dubug
调试
问题描述
提示:想通过debug排查空指针问题,看看数据有没有为
null`
Error running 'app': Cannot debug application from module xxx.app.main on device rockchip-rk3568-5e1kah7f4aee. `This application does not have the 'debuggable' attribute enabled in its manifest.` If you have manually set it in the manifest, then remove it and let the IDE automatically assign it. If you are using Gradle, make sure that your current variant is debuggable.
原因分析:
主要因为没有设置到
debug调试模式
解决方案:
app模式设置成Debug模式
点击左下角的Build Variants