android - 实施 'androidx.appcompat:appcompat:1.0.0'
问题描述
同步问题
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.0.0'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.2'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.1.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0'
implementation 'com.google.android.material:material:1.0.0-rc01'
implementation 'com.google.firebase:firebase-core:17.0.0'
implementation 'com.google.firebase:firebase-messaging:19.0.1'
}
apply plugin: 'com.google.gms.google-services'
在将我的项目迁移到 AndroidX 时,错误开始出现在之前创建的所有 java 文件中
解决方案
推荐阅读
- java - 如何在android开源项目中找到特定屏幕的代码?
- javascript - 使用 Express.js 和 TypeScript 从 Node.js 下载文件
- python - 如何获取元组元组的第一项
- javascript - 慢循环查找和复制
- python - 张量 a (70) 的大小必须与非单维 0 处的张量 b (10) 的大小相匹配
- html - 即使位置设置为绝对,页脚也保持固定
- javascript - ng2-file-uploader 需要浏览器刷新
- python - 在字典中获取对应的值
- php - API 身份验证问题
- xaml - 如何在周围元素中垂直居中对齐非常大的标签