问题描述
当我尝试创建一个新项目时,我在android studio中收到此错误.请帮助我一步一步来处理它.我对这个IDE完全陌生. 错误画面
I am getting this error in android studio when i try to create a new project. Please help me step to step to deal with it. I am completely new to this IDE. ERROR SCREENSHOT
推荐答案
我自己找到了解决方案,我想把它留在这里.
I found the solution myself, I'd like to leave it here.
打开android studio.在项目菜单的左侧(文件浏览器类型)点击该选项后,会出现一个渐变脚本"选项,打开下拉菜单.
Open android studio.On the left side that project menu (files explorer type)there will be a option "gradle scripts" clicking on it opens the drop down menu.
会有一个文件 build.gradle (模块:app)双击它,它将在android studio中打开.
There will be a file build.gradle (Module:app)Double click it, It would open in android studio.
在设置中更改为以下内容:compileSdkVersion 27targetSdkVersion 27实施'com.android.support:appcompat-v7:27.1.1'
Change to the following in settings:compileSdkVersion 27targetSdkVersion 27implementation 'com.android.support:appcompat-v7:27.1.1'
在gradle中同步文件.你完成了.如果需要,Android Studio会下载文件.
Sync the files in gradle. You're done.Android studio would download the files if required.
这篇关于与Android Studio中的依赖项发生错误冲突的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!