This article was reproduced from: http://light3moon.com/2015/01/31/Google%20android%20source%20code%20build%20%E9%97%AE%E9%A2%98%E6%80%BB%E7%BB%93/
Error compiling external/chromium_org
When compiling external/chromium_org, if you report a similar error:
Traceback (most recent call last): File ".. /.. /base/android/jni_generator/jni_generator.py ", line 1065, in Sys.exit (Main (SYS.ARGV)) File". /.. /base/android/jni_generator/jni_generator.py ", line 1061, in main options.optimize_generation) File". /.. /base/android/jni_generator/jni_generator.py ", line 996, in generatejniheader JNI_FROM_JAVAP = Jnifromjavap.createfromclass (input_file, namespace) file ".. /.. /base/android/jni_generator/jni_generator.py ", line 507, in Createfromclass stderr=subprocess. PIPE) file "/usr/lib/python2.7/subprocess.py",/usr/java/jdk1.6.0_45/bin line 709, in __init__ errread, errwrite) file "/usr/lib/python2.7/subprocess.py", line 1326, in _execute_child raise Child_exceptionoserror: [Errno 2] No such file or directorymake: * * * [/home/odexcide/android-4./out/target/product/generic/obj/gyp/shared_intermediates/ui/gl/ JNI/SURFACE_JNI.H] Error 1make: * * * waiting for unfinished jobs ....
That's the JDK to JAVAP. In fact, not necessarily is not installed, after loading JDK6, the default Java command path is/usr/bin/java this is actually a/usr/java/jdk1.6.0_45/bin/java link. Go to/usr/java/jdk1.6.0_45/bin under actually have JAVAP (this thing is used to decompile Java class), this is good to do, oneself manually under/usr/bin/create a JAVAP soft link on the line.
5.0 Compiling external/chromium_org Error
If the JAVAP set up, this chromium_org or error, then you can add to the chromium_org android.mk:
Product_prebuilt_webviewchromium: =yes
This sentence seems to say that you do not compile chromium webiew (WebKit?? ), with pre-compiled (the source code comes with a ready-made).
Google Android Source code build problem Summary "Go"