1.问题1(其实就这个问题4.3比较头疼)
out/target/common/obj/PACKAGING/public_api.txt:23522: error 12: Class android.telephony.gsm.SmsMessage changed static qualifier
out/target/common/obj/PACKAGING/public_api.txt:23523: error 4: Added public constructor SmsMessage()
out/target/common/obj/PACKAGING/public_api.txt:23524: error 4: Added public method android.telephony.gsm.SmsMessage.calculateLength
out/target/common/obj/PACKAGING/public_api.txt:23525: error 4: Added public method android.telephony.gsm.SmsMessage.calculateLength
out/target/common/obj/PACKAGING/public_api.txt:23526: error 4: Added public method android.telephony.gsm.SmsMessage.createFromPdu
out/target/common/obj/PACKAGING/public_api.txt:23527: error 4: Added public method android.telephony.gsm.SmsMessage.getDisplayMessageBody
out/target/common/obj/PACKAGING/public_api.txt:23528: error 4: Added public method android.telephony.gsm.SmsMessage.getDisplayOriginatingAddress
out/target/common/obj/PACKAGING/public_api.txt:23529: error 4: Added public method android.telephony.gsm.SmsMessage.getEmailBody
out/target/common/obj/PACKAGING/public_api.txt:23530: error 4: Added public method android.telephony.gsm.SmsMessage.getEmailFrom
out/target/common/obj/PACKAGING/public_api.txt:23531: error 4: Added public method android.telephony.gsm.SmsMessage.getIndexOnSim
out/target/common/obj/PACKAGING/public_api.txt:23532: error 4: Added public method android.telephony.gsm.SmsMessage.getMessageBody
out/target/common/obj/PACKAGING/public_api.txt:23533: error 4: Added public method android.telephony.gsm.SmsMessage.getMessageClass
out/target/common/obj/PACKAGING/public_api.txt:23534: error 4: Added public method android.telephony.gsm.SmsMessage.getOriginatingAddress
out/target/common/obj/PACKAGING/public_api.txt:23535: error 4: Added public method android.telephony.gsm.SmsMessage.getPdu
out/target/common/obj/PACKAGING/public_api.txt:23536: error 4: Added public method android.telephony.gsm.SmsMessage.getProtocolIdentifier
out/target/common/obj/PACKAGING/public_api.txt:23537: error 4: Added public method android.telephony.gsm.SmsMessage.getPseudoSubject
out/target/common/obj/PACKAGING/public_api.txt:23538: error 4: Added public method android.telephony.gsm.SmsMessage.getServiceCenterAddress
out/target/common/obj/PACKAGING/public_api.txt:23539: error 4: Added public method android.telephony.gsm.SmsMessage.getStatus
out/target/common/obj/PACKAGING/public_api.txt:23540: error 4: Added public method android.telephony.gsm.SmsMessage.getStatusOnSim
out/target/common/obj/PACKAGING/public_api.txt:23541: error 4: Added public method android.telephony.gsm.SmsMessage.getSubmitPdu
out/target/common/obj/PACKAGING/public_api.txt:23542: error 4: Added public method android.telephony.gsm.SmsMessage.getSubmitPdu
out/target/common/obj/PACKAGING/public_api.txt:23543: error 4: Added public method android.telephony.gsm.SmsMessage.getTPLayerLengthForPDU
out/target/common/obj/PACKAGING/public_api.txt:23544: error 4: Added public method android.telephony.gsm.SmsMessage.getTimestampMillis
out/target/common/obj/PACKAGING/public_api.txt:23545: error 4: Added public method android.telephony.gsm.SmsMessage.getUserData
out/target/common/obj/PACKAGING/public_api.txt:23546: error 4: Added public method android.telephony.gsm.SmsMessage.isCphsMwiMessage
out/target/common/obj/PACKAGING/public_api.txt:23547: error 4: Added public method android.telephony.gsm.SmsMessage.isEmail
out/target/common/obj/PACKAGING/public_api.txt:23548: error 4: Added public method android.telephony.gsm.SmsMessage.isMWIClearMessage
out/target/common/obj/PACKAGING/public_api.txt:23549: error 4: Added public method android.telephony.gsm.SmsMessage.isMWISetMessage
out/target/common/obj/PACKAGING/public_api.txt:23550: error 4: Added public method android.telephony.gsm.SmsMessage.isMwiDontStore
out/target/common/obj/PACKAGING/public_api.txt:23551: error 4: Added public method android.telephony.gsm.SmsMessage.isReplace
out/target/common/obj/PACKAGING/public_api.txt:23552: error 4: Added public method android.telephony.gsm.SmsMessage.isReplyPathPresent
out/target/common/obj/PACKAGING/public_api.txt:23553: error 4: Added public method android.telephony.gsm.SmsMessage.isStatusReportMessage
out/target/common/obj/PACKAGING/public_api.txt:23554: error 5: Added public field android.telephony.gsm.SmsMessage.ENCODING_16BIT
out/target/common/obj/PACKAGING/public_api.txt:23555: error 5: Added public field android.telephony.gsm.SmsMessage.ENCODING_7BIT
out/target/common/obj/PACKAGING/public_api.txt:23556: error 5: Added public field android.telephony.gsm.SmsMessage.ENCODING_8BIT
out/target/common/obj/PACKAGING/public_api.txt:23557: error 5: Added public field android.telephony.gsm.SmsMessage.ENCODING_UNKNOWN
out/target/common/obj/PACKAGING/public_api.txt:23558: error 5: Added public field android.telephony.gsm.SmsMessage.MAX_USER_DATA_BYTES
out/target/common/obj/PACKAGING/public_api.txt:23559: error 5: Added public field android.telephony.gsm.SmsMessage.MAX_USER_DATA_SEPTETS
out/target/common/obj/PACKAGING/public_api.txt:23560: error 5: Added public field android.telephony.gsm.SmsMessage.MAX_USER_DATA_SEPTETS_WITH_HEADER
******************************
You have tried to change the API from what has been previously approved.
To make these errors go away, you have two choices:
1) You can add "@hide" javadoc comments to the methods, etc. listed in the
errors above.
2) You can update current.txt by executing the following command:
make update-api
To submit the revised current.txt to the main Android repository,
you will need approval.
******************************
make: *** [out/target/common/obj/PACKAGING/checkapi-current-timestamp] Error 38
这个时候即使你make update-api也没有用.
解决方法:为什么会出现这个问题呢?因为你的java版本不对.
你所有的java指令都需要是jdk1.6版本(全部都要设置)
配置如下:
$ sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.6.0_45/bin/java 1
$ sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk1.6.0_45/bin/javac 1
$ sudo update-alternatives --install /usr/bin/javaws javaws /usr/lib/jvm/jdk1.6.0_45/bin/javaws 1
$ sudo update-alternatives --install /usr/bin/jar jar /usr/lib/jvm/jdk1.6.0_45/bin/jar 1
$ sudo update-alternatives --install /usr/bin/javadoc javadoc /usr/lib/jvm/jdk1.6.0_45/bin/javadoc 1
$ sudo update-alternatives --install /usr/bin/javap javap /usr/lib/jvm/jdk1.6.0_45/bin/javap 1 (EDIT - This is needed to compile Kit Kat 4.4)
然后在运行:
$ sudo update-alternatives --config java
$ sudo update-alternatives --config javac
$ sudo update-alternatives --config javaws
$ sudo update-alternatives --config jar
$ sudo update-alternatives --config javadoc
$ sudo update-alternatives --config javap (EDIT - This is needed to compile Kit Kat 4.4)
之后在运行make -j4
试试, OK!