我的 android 工作室不会自动生成 com,android.support 依赖项。我怎么解决这个问题?

My android studio does not generate com,android.support dependency automatically. How can I solve this problem?

依赖项{ 实现 fileTree(dir: 'libs', 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 支持库现已被 androidX 取代。如果您正在开始一个新项目或 migrate if you are on a previous project as support libraries are now deprecated and no longer maintained. AndroidX

,我建议您使用这种新方法