简体   繁体   English

开发flutter应用程序时无法解析androidmanifest.xml中的符号

[英]cannot resolve symbols in androidmanifest.xml while developing flutter application

I am developing a flutter application, it is working fine.我正在开发一个颤振应用程序,它工作正常。 In order to publish the app to the play store, I have to make some changes in the manifest.xml file.为了将应用程序发布到 Play 商店,我必须在 manifest.xml 文件中进行一些更改。

I want to change the icon and the label of the application.我想更改应用程序的图标和标签。 I changed the android:label to my label but it is not reflecting when I run the application.我将 android:label 更改为我的标签,但是当我运行应用程序时它没有反映。 I have specified the icon: android:icon="@drawable/app_logo.png", but it says "Cannot resolve symbol 'drawable' " Even the GradleException is working the same as drawable.我已经指定了图标:android:icon="@drawable/app_logo.png",但它说“无法解析符号'drawable'”甚至 GradleException 的工作方式与 drawable 相同。 I tried answer like setting the SDK path in the project structure but it did not work.我尝试了像在项目结构中设置 SDK 路径这样的答案,但它没有用。

Can someone help me with this please?有人可以帮我吗?

delete the ".png"删除“.png”

you should use android:icon="@drawable/app_logo" instead of android:icon="@drawable/app_logo.png"你应该使用android:icon="@drawable/app_logo"而不是android:icon="@drawable/app_logo.png"

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM