AAPT: error: ‘请�?�择你理想的专业�?‘ is incompatible with attribute prompt (attr) reference.
-
在调试APP时,编译不出来,提示:AAPT: error: ‘请�?�择你理想的专业�?’ is incompatible with
attribute prompt (attr) reference. -
原因:spinner的
promote属性直接输入的字符串,没有在strings.xml中定义
- 解决方式:在strings.xml文件中定义一下这个字符串,然后再引用即可
已经可以成功运行了
为啥会这样不太清楚,我以为偷懒一下也没事