Strange question of Android some Lib not being compiled

Source: Internet
Author: User

Because the project needs to achieve online audio and video interaction, the introduction of a newer version of the Libjingle library, after a code, compiled through, but the run-time on the pit dad, the package of all the classes can not find, anti-compilation apk found that the original content of the library has not been compiled into the classes.dex. What is this for? After a detour, it turns out that the package was compiled with a JDK of 1.7. And my eclipse compiled JDK is 1.6. A project with a low version of JDK compilation cannot integrate a library that is compiled with a high version of JDK. It seems that only eclipse and ADT can be upgraded to resolve.

Why is this happening? Probably studied a bit. There may be differences in the class file format compiled by different versions of the JDK, and if the high-version JDK is compiled with a class running on top of the lower version of the JVM, there will be problems that cannot resolve the high-version format. So when this version difference is found, it is not processed directly. In fact, this is very reasonable, but I think that eclipse in the compilation of this situation should be reported a mistake ah, you do not say anything, then the program lack of arms and legs that is not a hole.

Strange question of Android some Lib not being compiled

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.