android 新建项目无法跑Can't determine type for tag '<macro name="m3_comp_assist_chip_container_shape">?attr/shapeAppearanceCornerSmall</macro>'
时间: 2023-10-12 14:06:31 浏览: 297
这个报错是由于项目中的build.gradle文件配置有问题导致的。具体而言,可能是依赖的版本不匹配所致。可以尝试回退依赖的版本来解决这个问题。你可以在app目录下的build.gradle文件中找到依赖部分,检查并修改以下依赖版本:
implementation 'androidx.appcompat:appcompat:1.4.1'
implementation 'com.google.android.material:material:1.6.0'
将这两个依赖的版本回退到之前的版本,然后重新编译项目。这样应该可以解决报错问题。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [[Android Studio报错]Can‘t determine type for tag ‘<macro name=“m3_comp_bottom_app_bar_container_...](https://blog.csdn.net/weixin_44440669/article/details/127753568)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [【Android studio错误处理】Can‘t determine type for tag ‘<macro name=“m3_comp_assist_chip_...](https://blog.csdn.net/qq_44921056/article/details/131633953)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文