compilation - Why does the Android SDK need a JDK? -


i trying understand why android sdk needs jdk.

  • the android sdk not supposed have jdk java classes needs (with potential implementation differences) ?
  • does need tools included in jdk ?
  • do use jdk when build .dex & .apk files ?
  • what mean android java classes must written java 5 or 6 compiler compliance ?

thanks

andobuild

the general process typical build outlined below:

  • the android asset packaging tool (aapt) takes application resource files, such androidmanifest.xml file , xml files activities, , compiles them. r.java produced can reference resources java code.
  • the aidl tool converts .aidl interfaces have java interfaces.
  • all of java code, including r.java , .aidl files, compiled java compiler , .class files output.
  • the dex tool converts .class files dalvik byte code. 3rd party libraries , .class files have included in project converted .dex files can packaged final .apk file.
  • all non-compiled resources (such images), compiled resources, , .dex files sent apkbuilder tool packaged .apk file.
  • once .apk built, must signed either debug or release key before can installed device.
  • finally, if application being signed in release mode, must align .apk zipalign tool. aligning final .apk decreases memory usage when application running on device.

more referance here..


Comments

Popular posts from this blog

Unable to remove the www from url on https using .htaccess -