In Android Studio 3.0.1 Project window I select Android then expand Gradle Scripts
Normally the top of the list shows build.gradle(Project:XXXX) .
It does not appear, but choosing Project window Project Files confirms it's existance.
I have laboriously compared this project's home directory to that of a 'good' project but nothing stood out.
The project was created from a recently forked repo via
File > New > Project from Version Control > GitHub
The project builds correctly, honoring my changes to the project build.gradle.
This question may have been asked elsewhere but remains unanswered, so I am re-asking it with additional information!
Any insights or new avenues to explore would be appreciated.
Update I have removed Versioning for this project and the problem persists. Have removed GitHub tag for this question.
For me this worked fine.
1. Close the project using Close project option.
2. Import the project newly from android studio.
您可以手动删除项目中的.gradle
和.idea
文件夹并重新加载项目,这对我有帮助。
I eventually circumvented this bug by simply renaming the project folder!
Re-creating the problem has proved impossible, but I strongly suspect a synchronisation problem in an obscure little file called project.dat .
Please refer to the answer I gave to the aforementioned question here !
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.