Android的工作室新的项目不能运行,抛出错误 [英] Android Studio new project can not run, throwing error

查看:120
本文介绍了Android的工作室新的项目不能运行,抛出错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

刚才我已安装并开始工作在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选项运行,以获得更多的日志输出。

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

      无法执行构建<一href="http://services.gradle.org/distributions/gradle-1.6-bin.zip">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.

      这篇关于Android的工作室新的项目不能运行,抛出错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆