编译标准的Android 2.3 不会有问题, 从www. android-x86. _org 下载的Android 2.3 for x86第一次编译也可以,可后面改换target出现以下问题:
location: class android.net.sip.SipProfile.Builder
.setAuthUserName(PreferenceKey.AuthUserName.getValue())
^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
make: *** [out/target/common/obj/APPS/Phone_intermediates/classes-full-debug.jar] Error 41
packages/apps/Mms/src/com/android/mms/ui/VideoAttachmentView.java:107: cannot find symbol
symbol : method getFrameAtTime(int)
location: class android.media.MediaMetadataRetriever
bitmap = retriever.getFrameAtTime(-1);
^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
make: *** [out/target/common/obj/APPS/Mms_intermediates/classes-full-debug.jar] Error 41
有问题是不可避免的,target换成什么了?
类方法过期,新的target可能编入了一些其他的jar。建议把参数别用debug,可以是下eng,optional