我的android studio不能自动生成com,android.support依赖关系。如何解决这个问题?

问题描述 投票:0回答:1

dependencies { implementation fileTree(dir: 'lib', include: ['*.jar'])

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'

}

android build.gradle svm
1个回答
0
投票

Android支持库现在被androidX取代。我建议你使用这种新方法,如果你正在开始一个新的项目或 迁徙 如果你是在以前的项目上,因为支持库现在是 弃用 并不再维护。AndroidX

© www.soinside.com 2019 - 2024. All rights reserved.