简体   繁体   English

为什么在 Android Studio 中创建新项目时出现以下错误?

[英]Why am I getting following error while I create a new project in Android studio?

在此处输入图片说明

Please see this image to better understand.请查看此图片以更好地理解。

尝试将 SDK 和其他条目设置为菜单 File -> Project Structure

You are not able to resolve the junit file which is actually the compiler, To clear that problem try adding the following code to your builds.gradle file您无法解析实际上是编译器的junit文件,要清除该问题,请尝试将以下代码添加到您的 builds.gradle 文件中

 repositories {
        maven { url 'http://repo1.maven.org/maven2' }
    }

And if it works let me know.如果它有效,请告诉我。

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

相关问题 我的Android Studio项目中出现以下错误 - I am getting following error in my Android Studio Project Android Studio:为什么我在全新的 Google Maps API 项目上出现多 dex 错误? - Android Studio: Why am i getting multi dex error on brand new Google Maps API project? 为什么我在使用 android studio 时会出现此错误。? - Why am I getting this error while using android studio.? 为什么每次在Android Studio上都会收到以下异常? - Why am I getting the following exception everytime on android studio? 尝试导入现有的android studio项目时出现以下错误,对此有什么解决方案吗? - I am getting the following error when I am trying to import an existing android studio project.Is there any solution for this? 我在android studio的Image View中遇到以下错误 - I am getting the following error in Image View in android studio 在运行android应用程序时,我在控制台中收到以下错误 - while running an android application, i am getting the following error in console 我在android中出现以下错误 - I am getting following error in android 为什么我尝试在 android studio 中打开新活动时出错 - why am i getting error when trying to open new activity in android studio 运行我的应用程序时,我在android studio中收到此错误 - I am getting this error in android studio while running my app
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM