问题描述
Android SDK中要求的状态,无论是JDK 5或JDK 6必需的。
Android SDK requirements state that either JDK 5 or JDK 6 is required.
不过,我有一个Java类库用Java编写的7,我想用它为我的Android项目。
However, I have a Java class library written in Java 7 and I would like to use it for my Android project.
不用手动转换的Java 7到Java 6的手,我想知道是否有人知道一个转换器,可以做这个工作给我吗?
Instead of manually converting Java 7 to Java 6 by hand, I was wondering if anyone know of a converter that could do this job for me?
或者,我们要code一起来从头开始?
Or do we have to code one up from scratch?
推荐答案
你有源JAR?如果是这样,你可以使用 javac的-target
参数设定为5或6,以产生任何Java 5或6类文件。请参见此页面。
Do you have the source for the JAR? If so, you can use the javac -target
parameter set to either 5 or 6 to generate either Java 5 or 6 class files. See this page.
这篇关于是否有一个Java 7 Java 6的转换器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!