英文:
"settings.gradle (Project Setting)" errore
问题
<?xml version="1.0" encoding="UTF-8"?>
<!--
在项目工具栏中描述了一个错误,所以我双击它,它只是写着:
<?xml version="1.0" encoding="UTF-8"?>
<!--
就像在这个截图中所示:
这不会影响我运行项目,但我不知道这是否正常,看起来似乎不是。
在此之前,我删除了.idea
目录以解决另一个问题,而且解决得很好,但也许这与我的错误有关。
我再也看不到我的项目结构,就像我无法更改API级别,它只是显示给我这个:
我对使用Android Studio并不是很熟悉,大约3个月前开始做项目...所以希望您能帮助我。
谢谢大家!
<details>
<summary>英文:</summary>
"settings.gradle (Project Setting)" describe me an mistake in the tool bar project so I double click on it and it's just wrote
<?xml version="1.0" encoding="UTF-8"?>
<!--
Like on this screenShote
[enter image description here][1]
that does not prevent me to run my project but I don't know if it's normal, it doesn't seem to be.
before that a delete my `.idea` directory to solve an other problem and it solved it well but maybe is it related to my mistake.
And I can see my Project Structure anymore like I can't change the API level it's just show me this:
[enter image description here][2]
I'm not really confortable with android studio a start ma project like 3 months ago.. so I hope you can help me
thanks y'all
[1]: https://i.stack.imgur.com/rslQT.png
[2]: https://i.stack.imgur.com/2Nwi2.png
</details>
# 答案1
**得分**: 0
你的`settings.gradle`不应包含这些行。
通常情况下,它包含有关应用模块和项目名称的信息。
```groovy
include ':app'
rootProject.name = "YourProjectName"
对于你的项目,我注意到你应该替换为stapsQCM,所以
include ':app'
rootProject.name = "stapsQCM"
完成这些后,重新构建你的项目。
同时阅读文档。
英文:
Your settings.gradle
should not contain those lines.
This is what it usually has. Information about app module and project name
include ':app'
rootProject.name = "YourProjectName"
For your project i can notice that you should replace with stapsQCM, so
include ':app'
rootProject.name = "stapsQCM"
After this rebuild your project.
Also read documentation.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论