最近,我从GitHub下载了一个代码,并将其与我的android studio同步。在这样做的过程中,我遇到了很多错误和问题,并以某种方式解决了大多数问题。但是,我现在遇到的最后一个问题是我的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'}但是,即使在更改了依赖关系之后,仍然干净地构建项目,执行“ Invalidate Caches / Restart ...”,“ FloatingActionButton”的问题仍然存在。谁能帮我解决这个问题吗?
添加回答
举报
0/150
提交
取消