AnsweredAssumed Answered

imx_kk4.4.2_1.0.0-ga Compilation error

Question asked by Ashutosh Singh on Jul 24, 2014
Latest reply on Jul 30, 2014 by Ashutosh Singh

Hi,

 

I wish to compile Android Kitkat source https://community.freescale.com/docs/DOC-101561/version/3

As per the document provided there i follow the steps, after the configuration when i make the sorce i am getting error.

source build/envsetup.sh

lunch sabresd_6dq-user

make 2>&1 | tee build_sabresd_6dq_android.log

...

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

 

 

 

 

Then as per suggestion i use make update-api

again i am getting the below error.

 

out/target/common/obj/PACKAGING/public_api.txt:23516: error 12: Class android.telephony.gsm.SmsManager changed static qualifier

prebuilts/sdk/api/19.txt:23496: error 9: Removed public method android.telephony.gsm.SmsManager.divideMessage

prebuilts/sdk/api/19.txt:23497: error 9: Removed public method android.telephony.gsm.SmsManager.getDefault

prebuilts/sdk/api/19.txt:23498: error 9: Removed public method android.telephony.gsm.SmsManager.sendDataMessage

prebuilts/sdk/api/19.txt:23499: error 9: Removed public method android.telephony.gsm.SmsManager.sendMultipartTextMessage

prebuilts/sdk/api/19.txt:23500: error 9: Removed public method android.telephony.gsm.SmsManager.sendTextMessage

prebuilts/sdk/api/19.txt:23501: error 10: Removed field android.telephony.gsm.SmsManager.RESULT_ERROR_GENERIC_FAILURE

prebuilts/sdk/api/19.txt:23502: error 10: Removed field android.telephony.gsm.SmsManager.RESULT_ERROR_NO_SERVICE

prebuilts/sdk/api/19.txt:23503: error 10: Removed field android.telephony.gsm.SmsManager.RESULT_ERROR_NULL_PDU

prebuilts/sdk/api/19.txt:23504: error 10: Removed field android.telephony.gsm.SmsManager.RESULT_ERROR_RADIO_OFF

prebuilts/sdk/api/19.txt:23505: error 10: Removed field android.telephony.gsm.SmsManager.STATUS_ON_SIM_FREE

prebuilts/sdk/api/19.txt:23506: error 10: Removed field android.telephony.gsm.SmsManager.STATUS_ON_SIM_READ

prebuilts/sdk/api/19.txt:23507: error 10: Removed field android.telephony.gsm.SmsManager.STATUS_ON_SIM_SENT

prebuilts/sdk/api/19.txt:23508: error 10: Removed field android.telephony.gsm.SmsManager.STATUS_ON_SIM_UNREAD

prebuilts/sdk/api/19.txt:23509: error 10: Removed field android.telephony.gsm.SmsManager.STATUS_ON_SIM_UNSENT

 

 

******************************

You have tried to change the API from what has been previously released in

an SDK.  Please fix the errors listed above.

******************************

Outcomes