Android的工作室新的项目不能运行,抛出错误抛出、错误、工作室、项目

2023-09-12 11:28:05 作者:随性.

刚才我已安装并开始工作在Android Studio和配置的一切,我需要开始工作的项目之后创建的新项目。在新建项目中,我并没有改变任何东西,然后试图运行项目。但它不工作,抛出一些相关性错误,我猜。下面是它

Just now I have installed and started working on Android Studio, and created new project after configuring everything I needed to start working on project. In newly created project, I have not changed anything and then tried to run the project. But it is not working and throwing some dependency error I guess. Here is it

Gradle: 
 FAILURE: Build failed with an exception.

出了什么问题: 一个问题被发现与任务的配置:StudioTest2: packageDebug

What went wrong: A problem was found with the configuration of task ':StudioTest2:packageDebug'.

文件。'C:\ Users \用户StudioTest2 \ StudioTest2 \建立\库\ StudioTest2-debug.dex'财产'dexFile不存在指定

File 'C:\Users\StudioTest2\StudioTest2\build\libs\StudioTest2-debug.dex' specified for property 'dexFile' does not exist.

尝试: 与--stacktrace选项获取堆栈跟踪运行。与--info或--debug选项运行,以获得更多的日志输出。

Android程序运行时出现androidruntime错误

Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

无法执行构建http://services.gradle.org/distributions/gradle-1.6-bin.zip'.

推荐答案

一件事,我发现,帮助被创建后导入的项目,我得到了同样的问题,但一旦我进口的项目(相对于刚刚开放它),它内置的罚款。

One thing I found that helped was to import the project after creating it, I was getting the same issue but once I imported the project (as opposed to just opening it), it built fine.