今天学习android studio的layout布局时,参照老师的代码一直报错,如下
解决missing class的找不到constraintLayout类的问题
解决missing class的找不到constraintLayout类的问题
上图是老师给的代码,也是刚开始创建时自动生成的代码

网上查了很多资料都没有针对这个类的解决方案,终于在android官网看到,现在的版本已经不支持旧的constraintLayout布局了,要使用新的androidx代替。

由于初学android studio,不敢轻举妄动,最终将代码改为如下
解决missing class的找不到constraintLayout类的问题
这样就好啦~

相关文章:

  • 2021-06-05
  • 2022-12-23
  • 2021-05-12
  • 2021-04-10
  • 2021-11-22
  • 2021-04-26
  • 2021-07-16
  • 2021-09-24
猜你喜欢
  • 2022-12-23
  • 2022-01-02
  • 2021-05-28
  • 2021-04-02
  • 2021-09-27
  • 2022-12-23
  • 2021-04-26
相关资源
相似解决方案