Mac和Windows之间关于Android SDK的区别是什么 [英] What is the dif between mac and windows about android SDK

查看:112
本文介绍了Mac和Windows之间关于Android SDK的区别是什么的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如问题所述.我打算将android SDK库从我的Microsoft Windows PC复制到我的新Mac PC.我应该下载Mac版本的sdk还是将目录从Windows复制到Mac就足够了?

as the question stated. I am planning to copy android SDK library from my microsoft windows pc to my new Mac PC. Should I download the mac version of sdk or copying the directory from windows to mac is enough ?

推荐答案

SDK(Java部分)是相同的,但是NDK(也可以称为SDK的一部分)包含预先构建的Windows/Linux/Mac版本GCC编译器生成ARM/MIPS/x86 Android可执行文件.

The SDK (Java part) is identical, but the NDK (which may also be called a part of the SDK) contains prebuilt Windows/Linux/Mac versions of the GCC compiler to produce ARM/MIPS/x86 Android executables.

要在Mac上编译本机代码,您需要使用其他预构建的GCC工具链(包含在NDK中).该部分肯定不能从Windows复制.

To compile native native code on Mac you need different prebuilt GCC toolchain (included in NDK). That part certainly cannot be copied from Windows.

要构建Java,只需确保您的Mac不太旧(如PowerPC)并支持Android SDK和官方JDK来运行Ant构建脚本.

To build Java just make sure your Mac is not too old (like PowerPC) and support the Android SDK and official JDK to run Ant build scripts.

直接复制可能有一个问题:CLASSPATH变量将指向您的旧Windows路径,而不是Mac路径.

The direct copying may have one problem: the CLASSPATH variable will point to your old Windows paths, not the Mac paths.

这篇关于Mac和Windows之间关于Android SDK的区别是什么的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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