[英]Cardview in Androidx
因此,Android Studio 上的 nupdate 在 gradle 中沒有內置的 cardview 和 recyclerview 依賴項。 每當我嘗試包含它或它們(因為它們是兩個)時,它都會給我以下錯誤;
ERROR: Unable to resolve dependency for
':app@debugUnitTest/compileClasspath': Could not resolve androidx.appcompat:cardview:1.1.0
whenever I import it directly from the suggestions;
org.gradle.internal.resolve.ArtifactResolveException: Could not determine artifacts for androidx.cardview:cardview:1.0.0: No cached version available for offline mode
將implementation 'androidx.cardview:cardview:1.0.0'
到您的 build.gradle 文件以使用 CardView
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.