✅ 操作成功!

Cannot access ‘androidx.lifecycle.HasDefaultViewModelProviderFactory‘ which is a supertype of ‘com.e

发布时间:2023-06-17 作者:admin 来源:文学
  • 📚 相关推荐文章
  • Error[2]: array_keys() expects parameter 1 to be array, null given, File: /www/wwwroot/zastudy.cn/tmp/view_template_demo_ceshi_htm_read.htm, Line: 178
    File: /www/wwwroot/zastudy.cn/tmp/view_template_demo_ceshi_htm_read.htm, Line: 178, array_keys()
    File: /www/wwwroot/zastudy.cn/tmp/route_read.php, Line: 205, include(/www/wwwroot/zastudy.cn/tmp/view_template_demo_ceshi_htm_read.htm)
    File: /www/wwwroot/zastudy.cn/tmp/index.inc.php, Line: 129, include(/www/wwwroot/zastudy.cn/tmp/route_read.php)
    File: /www/wwwroot/zastudy.cn/index.php, Line: 29, include(/www/wwwroot/zastudy.cn/tmp/index.inc.php)
  • 息县息都小学五年级数学上册期末试卷 推荐
  • 泰州太湖路小学苏教版数学期末测试卷 推荐

Cannot access ‘androidx.lifecycle.HasDefaultViewModelProviderFactory‘ which is a supertype of ‘com.e

Cannot access ‘androidx.lifecycle.HasDefaultViewModelProviderFactory‘ which is a supertype of ‘com.e

Cannot access ‘androidx.lifecycle.HasDefaultViewModelProviderFactory’ which is a supertype of ‘com.example.a19.MainActivity’. Check your module classpath for missing or conflicting dependencies

今天创建了个项目,突然出现了这样的问题,怎么处理都没用,网上找了一堆没发现答案,故此记录。

增加这个依赖到你的build即可解决。

implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
👁️ 阅读量:0