Android Studio提示:Failed to instantiate one or more classes AppcompatTextView

本文介绍了一种解决Android开发中资源不同步问题的有效方法。在尝试了常见的rebuild和clean操作后,问题仍未解决。最终,在styles.xml文件中,通过将主题从Theme.AppCompat.Light.DarkActionBar更改为Base.Theme.AppCompat.Light.DarkActionBar成功解决了问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

说资源不同步,rebuild一下,或者clean一下,并没有毛用。

方法是在Stack overflow上看到的,

styles.xml中, 将主题从Theme.AppCompat.Light.DarkActionBar更改为Base.Theme.AppCompat.Light.DarkActionBar已经为我工作。

Error creating bean with name 'webMvcConfigure' defined in file [E:\art-design-pro-java\target\classes\com\iboot\studio\common\config\WebMvcConfigure.class]: Unsatisfied dependency expressed through constructor parameter 1: Error creating bean with name 'saPermissionInterceptor' defined in file [E:\art-design-pro-java\target\classes\com\iboot\studio\infrastructure\integration\satoken\SaPermissionInterceptor.class]: Unsatisfied dependency expressed through constructor parameter 0: Error creating bean with name 'saPermissionProcessor' defined in file [E:\art-design-pro-java\target\classes\com\iboot\studio\infrastructure\integration\satoken\SaPermissionProcessor.class]: Unsatisfied dependency expressed through constructor parameter 1: Error creating bean with name 'userServiceImpl' defined in file [E:\art-design-pro-java\target\classes\com\iboot\studio\service\impl\UserServiceImpl.class]: Unsatisfied dependency expressed through constructor parameter 0: Error creating bean with name 'userRepository' defined in file [E:\art-design-pro-java\target\classes\com\iboot\studio\infrastructure\persistence\repository\UserRepository.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory': Error creating bean with name 'sqlSessionFactory' defined in class path resource [com/baomidou/mybatisplus/autoconfigure/MybatisPlusAutoConfiguration.class]: Unsatisfied dependency expressed through method 'sqlSessionFactory' parameter 0: Error creating bean with name 'dataSource' defined in class path resource [org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Generic.class]: Failed to instantiate [javax.sql.DataSource]: Factory method 'dataSource' threw exception with message: Failed to determine a suitable driver class 2025-07-10 11:54:44.846 INFO 19364 --- [ main] o.a.c.c.StandardService : Stopping service [Tomcat]
最新发布
07-11
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值