“ant debug install” 出错: sdk.dir is missing. Make sure....
来源:互联网 发布:手机知乎不能写文章 编辑:程序博客网 时间:2024/04/28 13:55
BUILD FAILED
D:\Android\android-sdk\tools\ant\build.xml:569: The following error occurred while executing this line:
C:\cocos2d-2.0-x-202\cocos2dx\platform\android\java\build.xml:46: sdk.dir is missing. Make sure to generate local.properties using 'android update project' or to inject it through an env var
一开始不知道怎么回事,看了下local.properties 文件内容,是有指定 sdk.dir=D:\\Android\\android-sdk 的啊。
无奈尝试按照他说的 android update project, android update project -p . -t 3,这里也许会提示“3 is not vaild”,这时候要用"android.bat list targets"获取id值,自动生成 local.properties。可是看了下local.properties文件内容,没有变化。
然后又顺手看了下 project.properties, 突然发现有这么一行:android.library.reference.1=../../../cocos2dx/platform/android/java。。。这个路径眼熟,不就是刚刚error提示的那个路径吗?尝试注释掉这一行,重新打包install,成功。 谁知道这一行哪来的。。WTF!!
- “ant debug install” 出错: sdk.dir is missing. Make sure....
- “ant debug install” 出错: sdk.dir is missing. Make sure....
- “ant debug install” 出错: sdk.dir is missing. Make sure....
- “ant debug install” 出错: sdk.dir is missing. Make sure....
- “ant debug install” 出错: sdk.dir is missing. Make sure....
- android-sdk-linux/tools/ant/build.xml:401: SDK Platform Tools component is missing. Please install i
- SDK Platform Tools component is missing! Please .... Install....解决方案
- SDK Platform Tools component is missing! Please ×××× Install×××解决方法
- Error: Android SDK not found. Make sure that it is installed. If it is not at the default location,
- Make Sure the Simple Stuff Is Simple
- Error24 Could not delete file 'e:/debug/vc80.idb'. Make sure that the file is not open by another p
- SDK Platform Tools component is missing! Please use the SDK Manager to install it.
- sdk platform tools is missing please user the sdk manager to install it
- unity打包出现Unable to list target platforms.Please make sure the android sdk path is correct.
- SDK Platform Tools component is missing ! Please ****Install****eclipse报错
- 应用FirefoxDriver时报错Make sure firefox is installed题目
- make sure the plugin is properly configured!报错解决方案
- Checking to make sure a SQL Server backup is useable
- tomcat服务器解析(六)-- Acceptor
- spring定时器
- iOS学习新手指导-开篇
- Activity的生命周期和创建按方式
- iOS开发新手指导2-准备
- “ant debug install” 出错: sdk.dir is missing. Make sure....
- iOS开发前景分析
- 最新CAX/EDA/CFD/GIS/光学/化工/液压软件资源网
- android 线程:Message和Runnable
- The method replace(int, Fragment) in the type FragmentTransaction is not applicable for the argument
- 《自己动手写框架9》:理想的开源框架与设计原则
- 最新CAX/EDA/CFD/GIS/光学/化工/液压软件资源网
- UEditor配置:图片上传和文件上传独立使用方法,兼容最新版 UEditor 1.4.3
- 一篇相当不错的js function详解 读了一定有收获