用 xcode 开发安卓应用
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/3087271/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
develop android apps in xcode
提问by ng93
hi im trying to develop an android app in xcode. ive downloaded java, java jdk and the android sdk and have loaded a half finished (but working with no errors) app. i also changed the target to:
嗨,我正在尝试在 xcode 中开发一个 android 应用程序。我下载了 java、java jdk 和 android sdk 并加载了一半完成(但没有错误)的应用程序。我还将目标更改为:
Build Tool: /usr/bin/ant
Arguments: install
构建工具:/usr/bin/ant
参数:安装
but when i try to build it i get
但是当我尝试构建它时,我得到了
Build file build.xml does not exist
构建文件 build.xml 不存在
i couldn't figure out how to make my own build.xml so downloaded one but still no luck. Id really appreciate some help.
我不知道如何制作我自己的 build.xml 所以下载了一个但仍然没有运气。我真的很感激一些帮助。
回答by jkap
This is how I setup my XCode environment to develop in Android. It might help for you, too. http://code.davidjanes.com/blog/2009/11/20/how-to-use-xcode-for-android-projects/
这就是我如何设置我的 XCode 环境以在 Android 中进行开发。它也可能对你有帮助。 http://code.davidjanes.com/blog/2009/11/20/how-to-use-xcode-for-android-projects/
Keep in mind that this method requires that you already created your android project with the sdk, as seen here: http://developer.android.com/guide/developing/other-ide.html
请记住,此方法要求您已经使用 sdk 创建了 android 项目,如下所示:http: //developer.android.com/guide/developing/other-ide.html