[英]Pure java in Android app : 32 or 64 bit?
If I want to include a pure Java external library, should I compile it with a 32 or 64 bit javac ? 如果要包括纯Java外部库,是否应该使用32位或64位javac进行编译?
I would like my app, and so my external library, to be used with Android Gingerbread 2.3 我希望将我的应用程序以及外部库与Android Gingerbread 2.3一起使用
Thank you 谢谢
Class files produced by any java compiler are platform independent. 任何Java编译器生成的类文件都是平台无关的。 Note, that not all of the java SE packages are present in Android. 注意,并非所有Java SE软件包都存在于Android中。 Also, Java 8 language features are not yet supported in Android (Part of them will be available in Android N). 此外,Android尚不支持Java 8语言功能(部分功能将在Android N中提供)。
you need to use java 1.6 in Gingerbread 2.3 you can't use java 1.7 new api in old devices that running Gingerbread 2.3 the ARM chips are 32-bit so I think it is prefer to use 32 bit . 您需要在Gingerbread 2.3中使用Java 1.6,而不能在运行Gingerbread 2.3的旧设备中使用Java 1.7新api,而ARM芯片是32位的,所以我认为更喜欢使用32位 。
to develop for new version you can use java 7 features in KitKat and newer and can some of java 8 api features in N preview 要开发新版本,您可以在KitKat和更高版本中使用Java 7功能,并可以在N预览中使用某些Java 8 API功能
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.