AndroidStudio报setGravity() shouldn’t be called on text toasts, the values won’t be used
描述:
运行程序时报setGravity() shouldn’t be called on text toasts, the values won’t be used
解决:
targetSdkVersion 30及以上版本不适用,设置成更低版本就可以了
本文介绍了解决在Android Studio中遇到的setGravity()警告的方法。该警告出现在targetSdkVersion设置为30或更高版本时,文章提供了一种简单有效的解决方案。
AndroidStudio报setGravity() shouldn’t be called on text toasts, the values won’t be used
描述:
运行程序时报setGravity() shouldn’t be called on text toasts, the values won’t be used
解决:
targetSdkVersion 30及以上版本不适用,设置成更低版本就可以了
2133
1480

被折叠的 条评论
为什么被折叠?