Can't determine type for tag '<macro name="m3_comp_assist_chip_container_shape"
时间: 2024-01-11 15:54:47 浏览: 261
xfs_bmap_btree.rar_V2
这个报错提示是在使用最新版本的SDK33新建项目时遇到的问题。报错信息中的部分代码是一个宏标签,它的具体类型无法确定。经过排查,发现问题出现在app目录下的build.gradle文件的配置上。解决方法是将dependencies配置项中的implementation 'androidx.appcompat:appcompat:1.5.1'和implementation 'com.google.android.material:material:1.7.0'修改为implementation 'androidx.appcompat:appcompat:1.4.1'和implementation 'com.google.android.material:material:1.6.0',然后重新编译项目即可成功。
另外,我注意到了引用里提到的类似的问题。如果你遇到了类似的问题,也可以尝试回退依赖的版本来解决。具体来说,将implementation 'androidx.appcompat:appcompat:1.4.1'和implementation 'com.google.android.material:material:1.6.0'配置到app目录下的build.gradle文件中即可。<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: 33.333333333333336%"]
- *2* [Android重写Gallery](https://download.csdn.net/download/wuruize/3858225)[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: 33.333333333333336%"]
- *3* [Can‘t determine type for tag ‘<macro name=“m3_comp_assist_chip_container_shape“>](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: 33.333333333333336%"]
[ .reference_list ]
阅读全文