The invention discloses a
system and method for packing an Android SDK. The
system comprises a code
library unit, a kit name obtaining unit, a
source code changing and packing unit, a call
namespace changing unit, a local code
library generating unit and a mixing unit, wherein the code
library unit is used for establishing the compilation run environment for data packet packing; the kit name obtaining unit is used for obtaining a new kit name input by a user and
jar kit information needing to be changed; the
source code changing and packing unit is used for changing keywords, related to lit names of original
jar kits, in an SDK
source code into new kit names, and a new
jar kit is generated according to the new source code and stored; the call
namespace changing unit is used for changing the JNI call
namespace in an SDK local C
source code file and changing the keywords related to the kit names of the original jar kits into the new kit names; the local code library
generating unit is used for compiling a modified local C
source code file into a new local code library to be stored, and the newly generated local code library is added into the new jar kit; the mixing unit is used for generating a new Android SDK in a mixing mode according to the new jar kit and the local code library. According to the
system and method for packing the Android SDK, repeated labor of a developer is saved, and automatic executing can be achieved.