首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >我的安卓工作室不会自动生成com、android.support依赖项。我该如何解决这个问题?

我的安卓工作室不会自动生成com、android.support依赖项。我该如何解决这个问题?
EN

Stack Overflow用户
提问于 2020-06-11 19:23:54
回答 1查看 26关注 0票数 1

依赖性{实现fileTree(dir:'libs',包括:'*.jar')

代码语言:javascript
复制
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'com.google.firebase:firebase-auth:16.0.5'
implementation 'com.google.firebase:firebase-database:16.0.4'
implementation 'com.google.firebase:firebase-storage:16.0.4'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'

}

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2020-06-11 19:29:56

安卓支持库现在被androidX所取代。如果您正在启动一个新项目,我建议您使用这种新方法;如果您是在以前的项目上,则建议使用迁移,因为支持库现在是,不再推荐使用,不再维护。AndroidX

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/62332006

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档