您的位置:首页 > 科技 > IT业 > Android-Android Studio-FAQ

Android-Android Studio-FAQ

2024/10/6 5:57:45 来源:https://blog.csdn.net/pwp032984/article/details/139847482  浏览:    关键词: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 参考资料

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com