MainActivity在启动新项目后无法手动构建

huangapple go评论63阅读模式
英文:

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.

huangapple
  • 本文由 发表于 2020年10月13日 09:26:15
  • 转载请务必保留本文链接:https://go.coder-hub.com/64327238.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定