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

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

如何修復 Android Studio 中的“缺少類”錯誤?

如何修復 Android Studio 中的“缺少類”錯誤?

當年話下 2023-06-08 13:52:28
當我嘗試在 Android Studio 中創(chuàng)建新活動時,會發(fā)生這些錯誤,在此錯誤之前我通常創(chuàng)建了一些活動(沒有任何錯誤):The following classes could not be found:- android.support.constraint.ConstraintLayout (    Add constraint-layout library dependency to the project, Fix Build Path, Edit XML, Create Class)- android.support.design.widget.CoordinatorLayout (Fix Build Path, Edit XML, Create Class)- android.support.v7.widget.Toolbar (Fix Build Path, Edit XML, Create Class)依賴庫:dependencies {    implementation fileTree(include: ['*.jar'], dir: 'libs')    implementation 'androidx.appcompat:appcompat:1.0.2'    implementation 'androidx.constraintlayout:constraintlayout:1.1.3'    implementation 'com.android.support:support-v4:29.+'    implementation 'com.android.support:design:29.+'    implementation 'com.android.support:appcompat-v7:29.+'    implementation 'com.android.support.constraint:constraint-layout:1.1.3'    testImplementation 'junit:junit:4.12'    androidTestImplementation 'androidx.test:runner:1.2.0'    androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'    implementation 'com.google.android.material:material:1.0.0'    implementation 'com.squareup.retrofit2:retrofit:2.0.2'    implementation 'com.squareup.retrofit2:converter-gson:2.0.2'    implementation 'com.squareup.picasso:picasso:2.5.2'    implementation 'de.hdodenhof:circleimageview:3.0.0'    implementation 'com.mikhaellopez:circularimageview:3.2.0'    implementation 'com.google.android.gms:play-services-base:11.0.1'    implementation 'com.google.android.gms:play-services-basement:11.0.1'    implementation 'com.google.android.gms:play-services-safetynet:11.0.1'    implementation 'com.google.android.gms:play-services-tasks:11.0.1'}
查看完整描述

2 回答

?
瀟湘沐

TA貢獻1816條經驗 獲得超6個贊

看起來您正在嘗試在同一個項目中使用 AndroidX 庫和支持庫。從菜單遷移到 AndroidX,它將替換包名稱和依賴項。

您的項目正在從支持庫中添加小部件,而不是從導致此問題的 AndroidX 添加小部件。


http://img1.sycdn.imooc.com/64816cd10001041602400415.jpg

查看完整回答
反對 回復 2023-06-08
?
喵喔喔

TA貢獻1735條經驗 獲得超5個贊

您已經將AndroidX依賴與AppCompat. 從 Refactor -> Migrate to AndroidX 將其遷移到 AndroidX 或使用 AppCompat。

正如在您的代碼中一樣,您已經為Constraint Layout. 解決您問題的最簡單方法是刪除該行

implementation 'androidx.constraintlayout:constraintlayout:1.1.3'


查看完整回答
反對 回復 2023-06-08
  • 2 回答
  • 0 關注
  • 398 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

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

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號