英文:
MainActivity not building manually after starting a new project
问题
我将Gradle从4.0.2更新到了6,应用程序构建成功后,没有创建MainActivity,布局文件也不存在。因此,我尝试手动添加新的Activity,但是没有创建任何Activity。我不知道该怎么办,你能帮助我吗?
英文:
I updated the gradle from 4.0.2 to 6 and after the app has built successfully
No MainActivity is created and layout file is also missing
So, I tried to add a new activity manually, but no activity is created.
I don't know what do do , Can you help me ???
答案1
得分: 1
起初,我建议您在创建完全新的项目之后,如果问题仍然存在,那么您需要执行以下步骤:
文件 -> 新建 -> 导入项目
然后浏览到您的项目位置并导入它。
英文:
At first I recommend you to creating a new project perfectly after that if your problem still happen than, you need to go to
File -> New -> Import Project
Then browse to the location of your project and import it.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论