最近,我從GitHub下載了一個代碼,并將其與我的android studio同步。在這樣做的過程中,我遇到了很多錯誤和問題,并以某種方式解決了大多數(shù)問題。但是,我現(xiàn)在遇到的最后一個問題是我的android studio無法找到類“ FloatingActionButton”,如您在此屏幕截圖中所見要注意的是,早期的許多其他類,包括“ AppCompatActivity”都無法解析。更改依賴項以解決以下問題dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation 'com.android.support:appcompat-v7:27.1.1' implementation 'com.android.support.constraint:constraint-layout:1.1.2' testImplementation 'junit:junit:4.12' androidTestImplementation 'com.android.support.test:runner:1.0.2' androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'}但是,即使在更改了依賴關(guān)系之后,仍然干凈地構(gòu)建項目,執(zhí)行“ Invalidate Caches / Restart ...”,“ FloatingActionButton”的問題仍然存在。誰能幫我解決這個問題嗎?
添加回答
舉報
0/150
提交
取消