是什么替换了AndroidX中的包android.support.v7
我在Androidx版本中找不到
这是我的应用程序级buidl.gradle依赖项:
d
ependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.google.firebase:firebase-database:16.0.4'
testImplementation 'junit:junit:4.12'
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
api 'com.google.android.material:material:1.1.0-alpha06'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
androidTestImplementation 'androidx.test:core:1.1.0'
androidTestImplementation 'androidx.test.ext:junit:1.1.0'
androidTestImplementation 'androidx.test:runner:1.2.0-alpha05'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0-alpha05'
implementation 'com.google.firebase:firebase-analytics:17.2.1'
implementation 'com.google.firebase:firebase-core:17.2.1'
// Displaying images
implementation 'com.github.bumptech.glide:glide:3.6.1'
implementation 'androidx.appcompat:appcompat-resources:1.2.0-alpha01'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
}
答案 0 :(得分:1)
在依赖项中添加此行 实现'androidx.appcompat:appcompat:1.1.0'
答案 1 :(得分:0)
您应该在项目级别的build.gradle文件中添加JetPack库的Maven。 以下是代码
repositories {
google()
jcenter()
maven
{
url 'https://maven.fabric.io/public'
}
}
allprojects {
repositories {
google()
jcenter()
maven { url "https://jitpack.io" }
}
}