Android-Android Studio-FAQ

1 需求


2 接口


3 Android Studio xml布局代码补全功能失效问题

最终解决方案就是尝试修改compileSdk 为不同SDK版本来解决问题,将原本34修改为32测试会发现xml代码补全功能有效了!

参考资料

Android Studio xml布局代码补全功能失效问题_android studio开发布局xml时属性没有自动补齐提示-CSDN博客


3 Can't determine type for tag '<macro name="m3_comp_assist_chip_container_shape">?attr/shapeAppearanceCornerSmall</macro>'

使用最新版本的SDK33新建项目时,直接编译会有如下报错

Can't determine type for tag '<macro name="m3_comp_bottom_app_bar_container_color">?attr/colorSurface</macro>'

经过排查,是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'

参考资料:

Android Studio报错Can't determine type for tag '<macro name="m3_comp_bottom_app_bar_container_color"_can't determine type for tag-CSDN博客


3 解决android studio build Output中文乱码

参考资料

解决android studio build Output中文乱码_android studio build out 输出乱码-CSDN博客


4 参考资料

相关推荐
赵庆明老师1 天前
Android Studio Google源代理配置
android·ide·android studio
古法安卓2 天前
Android-GPU压测工具
android·java·android studio
weixin_563371475 天前
Android Studio 2024 版 Device Explorer 打开方法
android·ide·android studio
洞见前行5 天前
点击图标到内容出现,你的 App 在这几秒里做了什么:Android 冷启动全链路优化实战
android·性能优化·android studio
allanGold8 天前
Android Studio 无线调试
android·ide·android studio
NamoAmitabha12811 天前
安装“编译器环境”(Android Studio)--deepseek--Cocos --Creator3.8.8
android·ide·android studio
小师兄吃牛肉13 天前
Android Studio 2025 专业介绍:新特性、性能与开发体验全面解析
android·ide·android studio
JMchen15 天前
【Jetpack 内核实战 02】ViewModel:生命周期管理与数据持久化核心实战
kotlin·android studio·android jetpack