Android Studio更新3.2.1 [英] Android Studio Update 3.2.1
问题描述
仅更新到3.2.1 Android Studio
Just updated to 3.2.1 Android Studio
当我尝试运行该应用程序时出现以下错误
And i get the following errors when i try to run the app
在更新之前,一切都很好.
Before the update everything was fine.
推荐答案
尝试:
Build->清理项目 然后 File-> Invalidate Caches/Restart ...-> Invalidate and restart
Build->Clean Project Then File->Invalidate Caches/Restart...->Invalidate and restart
如果这不起作用,请尝试工具">"Android">使用Gradle文件同步项目"
If this doesn't work then Try Tools > Android > Sync Project with Gradle Files
仍然无法正常工作,那么该变得残酷了.
Still not working then its time to get brutal.
文件->关闭项目.
备份项目.
删除项目副本的build/目录(如果在顶层和/或模块级别有一个)和.gradle/目录以及.idea/,build/和.gradle/,然后导入再来一次.
Get rid of the build/ directory (if you have one at the top and/or module levels) and the .gradle/ directory along with .idea/, build/, and .gradle/ of a project copy, then import it again.
如果这不起作用.
再次删除相同的文件,并从项目文件夹中删除.iml文件.然后,从您选择更早关闭项目"时出现的欢迎对话框中,使用导入项目(Gradle,Eclipse ATD ...)导入项目.
Delete the same files again and also the .iml file from the project folder. Then, import the project using "Import Project(Gradle, Eclipse ATD..." from the welcome dialog that appeared when you chose Close Project earlier.
在进行所有这些操作时,请不要忘记交叉手指.
Don't forget to cross your finger while doing all of this.
这篇关于Android Studio更新3.2.1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!