蚂蚁调试和sdk.dir

编程入门 行业动态 更新时间:2024-10-27 12:25:17
本文介绍了蚂蚁调试和sdk.dir的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我有一个问题产生了A​​ndroid APK文件。

I have a problem to generate the Android APK file.

当我运行蚂蚁调试编制工作很好,但是当我运行蚂蚁调试

When I run ant debug compilation work fine, but when I run ant debug

我有以下错误:

iMac:proj.android smartmind$ ant debug Buildfile: /Users/smartmind/Works/Smallthing/cocos2d-x/samples/HelloCpp/proj.android/build.xml BUILD FAILED /Users/smartmind/Works/Smallthing/cocos2d-x/samples/HelloCpp/proj.android/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 Total time: 0 seconds

我不知道是什么问题。

I don't know what is problem.

推荐答案

您的项目应该有一个 local.properties 与 sdk.dir文件行指向安装了你的Andr​​oid SDK:

Your project should have a local.properties file with an sdk.dir line that points to where your Android SDK is installed:

# This file is automatically generated by Android Tools. # Do not modify this file -- YOUR CHANGES WILL BE ERASED! # # This file must *NOT* be checked into Version Control Systems, # as it contains information specific to your local configuration. # location of the SDK. This is only used by Ant # For customization when using a Version Control System, please read the # header note. sdk.dir=/opt/android-sdk-linux_x86

要创建这个文件,如果它不存在,运行 Android的更新项目-p ... 其中 ... 是路径到你的项目。

To create this file if it does not exist, run android update project -p ... where the ... is the path to your project.

更多推荐

蚂蚁调试和sdk.dir

本文发布于:2023-07-28 00:11:28,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1225568.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:蚂蚁   sdk   dir

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!