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 参考资料

相关推荐
正经教主2 天前
【咨询】Android Studio 第三方手机模拟器对比【202511】
android·ide·android studio
正经教主3 天前
【App开发】Mumu模拟器安装使用与Android Studio连接指南
android·ide·android studio
LvLuffy3 天前
mac Android Studio配置adb环境(使用adb报错 adb: command not found)
macos·adb·android studio
HahaGiver6663 天前
Unity与Android原生交互开发入门篇 - 打开Android的设置
android·java·unity·游戏引擎·android studio
bqliang4 天前
Jetpack Navigation 3:领航未来
android·android studio·android jetpack
陈大头铃儿响叮当4 天前
Android Studio升级后,Flutter运行android设备报错
android·flutter·android studio
liquid5 天前
记录一下 The emulator process for AVD <设备名> has terminated. Android 模拟器报错解决
android studio
正经教主6 天前
【问题】Android Studio专用C盘空间过大问题:迁移相关程序文件
android·android studio
吞掉星星的鲸鱼7 天前
android studio创建使用开发打包教程
android·ide·android studio
陈老师还在写代码7 天前
android studio 签名打包教程
android·ide·android studio