运行项目时出现如下错误:
Error:Execution failed for task ':app:dexDebug'.
> com.android.ide.common.internal.LoggedErrorException: Failed to run command:
D:\WorkBook\iflytek\android\Android\sdk\build-tools\21.1.1\dx.bat --dex --no-optimize --output D:\Androidspace\Helloworld\app\build\intermediates\dex\debug --input-list=D:\Androidspace\Helloworld\app\build\intermediates\tmp\dex\debug\inputList.txt
Error Code:
1
Output:
系统找不到指定的路径。
解决方案如下:
找到安装根目录下find_java.bat文件
D:\WorkBook\iflytek\android\Android\sdk\tools\lib\find_java.bat
编辑文件27行处的代码:
In line 27 of tools/lib/find_java.bat has a problem:
find /i "x86" > NUL && set arch_ext=32 || set arch_ext=64
删除||符号前的空格,程序执行通过:
You must remove space after "arch_ext=32". Correct code is:
find /i "x86" > NUL && set arch_ext=32|| set arch_ext=64
解决方案原因不明,当前项目虽不报错,但无法通过模拟器运行,真机调试正常,如果有知道如何在模拟器上成功运行的朋友,请指点一下。
分享到:
相关推荐
Windows环境下Android Studio v1.0安装教程,ie打开
4Media Burner Studio V1.0.64 注册码
本汉化补丁作者为wellchang 补丁并没有完全汉化,不喜勿喷,并且仅适用于Android Studio 预览版1.0 RC4 使用方法:关闭当前运行的Android Studio程序 解压后用resources_en.jar替换android studio安装目录下lib/...
Visual Studio Code 1.0正式版
本人最近已经更新用google最新发布的android studio 1.0稳定版开发有一个月了,感觉很不错,比eclipse智能,速度快,而且支持可见即可得的所有屏幕大小的手机适配。 android studio支持跨平台,支持windowns、linux ...
Android studio1.0正式版已经发布了
将eclipse中的android项目导入到AndroidStudio中,使其运行的操作步骤
安卓应用开发大作业,50个Android studio项目源码,适合初学者使用
全新版本的QT开发工具,Qt Design Studio 1.0 正式发布啦 (201811)
安卓期末项目作业Android studio
.百度网盘送到 Android studio 1.0
Google官方12月8日发布Android Studio 1.0正式版,已经上传百度网盘,由于不能直接把连接发出(可能是我不会^_^)所以放到了附件文本中。 附件为win版,有需要其他平台可留言。
我们在购买或者其他途径下载的安卓源码无法跑起来,那么可以尝试下这几种常用的办法,这里介绍了我们需要修改的几处关键信息
Android Studio1.0 汉化版下载及安装说明,附下载地址及使用教程,常用技巧
flutter是goole开源的一款混合开发的框架,适合想要开发一款既能在Android上运行,又能在iOS运行的app。通过文档能够正确的配置好环境,成功创建一个demo。通过Android studio 创建项目并运行。
Android Studio Bumblebee 2021.1.1 Patch 1 (android-studio-2021.1.1.21-windows.exe)大黄蜂,适用于Windows x86_64系统,是Android Studio 4.3(Android Studio Arctic Fox 2020.3.1.26新版本命名)版本之后的新...
Android Studio项目《天气预报app》
Android Studio项目+报告+app文件