永发信息网

android The method getText() is undefined for the type R.str

答案:1  悬赏:60  手机版
解决时间 2021-05-25 06:04
  • 提问者网友:書生途
  • 2021-05-24 11:15
android The method getText() is undefined for the type R.string
最佳答案
  • 五星知识达人网友:逐風
  • 2021-05-24 11:34

如果你在编译Android项目的时候发生下面错误
The method getTextContent() is undefined for the type Element, 一般原因是你选择了Android project target版本太低,getTextContent()与setTextContent()是高版本Android的提供的,修改方法一是提升Android的版本,或者你可以用getFirstChild().getNodeValue()来替换.
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯