第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

新的材質依賴不適用于 CoordinatorLayout 預覽

新的材質依賴不適用于 CoordinatorLayout 預覽

拉丁的傳說 2021-12-01 15:07:04
所以,我已經(jīng)添加了所有的 android 新材料依賴以便與 BottomAppBar 一起使用,但是在我導入所有內容并更改文檔建議的內容后,我什至看不到預覽,當我編譯時,我得到了test.runner不存在的錯誤,就是這樣也許我刪除了support.test.runner因為它說我們不需要將支持與材料混合在一起。這就是我所做的我的依賴dependencies {    implementation fileTree(dir: 'libs', include: ['*.jar'])    implementation 'com.google.android.gms:play-services-maps:16.0.0'    implementation 'androidx.appcompat:appcompat:1.0.0'    implementation 'androidx.constraintlayout:constraintlayout:1.1.3'    implementation 'com.google.android.material:material:1.0.0'    implementation 'androidx.cardview:cardview:1.0.0'    testImplementation 'junit:junit:4.12'    implementation "androidx.room:room-runtime:2.1.0-alpha01"    annotationProcessor "androidx.room:room-compiler:2.1.0-alpha01"}樣式<style name="AppTheme" parent="Theme.MaterialComponents.Light.NoActionBar">我通過編譯器將這兩行建議添加到我的 AndroidManifest 應用程序標簽中 tools:replace="android:appComponentFactory"        android:appComponentFactory="settings"我更改了AppCompat所有課程中的所有內容并將其替換為新的 AndroidXAppCompat錯誤錯誤:包 android.support.test 不存在這可能是因為我從我的 gradle 中刪除了 support.test,因為在文檔中說我們不需要將支持與材料混合。而這個錯誤試圖預覽 coordinatorLayout任何線索可能是什么以及如何解決所有這些問題,因為我需要盡快使用這種材料設計。另一件事,因為它有 AppCompat,我可以在我的 android 7 上運行并看到這個設計?謝謝
查看完整描述

2 回答

?
蠱毒傳說

TA貢獻1895條經(jīng)驗 獲得超3個贊

你有什么版本的安卓工作室?根據(jù)這里:https : //developer.android.com/jetpack/androidx/migrate Android studio 必須是 3.2 或更高版本。如果您的 android studio 現(xiàn)在是 3.2 或更高版本,則在 Refactor 選項卡下有一個選項 - “Migrate to AndroidX” 等待它編譯所有內容,AS 會將您現(xiàn)有的項目遷移到 androidX,這就是您正在尋找的材料。


如果你可能會問,這是我對 androidx 的依賴:


implementation 'androidx.appcompat:appcompat:1.0.0-rc01'

implementation 'com.google.android.material:material:1.0.0-rc01'

implementation 'androidx.constraintlayout:constraintlayout:2.0.0-alpha2'

implementation 'com.android.support:appcompat-v7:28.0.0-rc01'

implementation 'com.android.support.constraint:constraint-layout:1.1.2'

testImplementation 'junit:junit:4.12'

androidTestImplementation 'androidx.test:runner:1.1.0-alpha4'

androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0-alpha4'


查看完整回答
反對 回復 2021-12-01
?
小唯快跑啊

TA貢獻1863條經(jīng)驗 獲得超2個贊

解決了我的問題,只是導入了所有材料依賴項而不使用任何支持的


查看完整回答
反對 回復 2021-12-01
  • 2 回答
  • 0 關注
  • 227 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網(wǎng)微信公眾號