开发者

Adding Main Activity to Manifest: element is not allowed here

开发者 https://www.devze.com 2022-12-07 20:11 出处:网络
When I run my code, I get the error: "The activity \'MainActivity\' is not declared in AndroidManifest.xml"

When I run my code, I get the error: "The activity 'MainActivity' is not declared in AndroidManifest.xml" I added a few lines of code in manifest based on what I've been seeing online, but now I am getting these errors. How would I fix this开发者_C百科?

I've tried exiting manifest and syncing with gradle files but it did not work (https://i.stack.imgur.com/9zLgl.png)


Your activity is outside the application tag update it remove /> from application replace it with > ... here add your activity

Adding Main Activity to Manifest: element is not allowed here

0

精彩评论

暂无评论...
验证码 换一张
取 消