1, download the kernel to install JDK, make appear:/Android/prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/ARM-Linux-androideabi-GCC: permission is not enough,
We can see that the permission is not enough, because after the compilation of the arm-Linux-androideabi-GCC file is completed, it is not set to executable (For details, refer to the Linux permission). The landlord opens the command line, switch to the directory where the file is located and run chmod 777 file.
/Bin/Bash: build/CORE/find-jdk-tools-jar.sh: Permission denied
Same as above. To prevent the same error, add the execution right to all android files.
2. LD/CORE/base_rules.mk: 479: Warning: ignoring old commands for target 'out/target/product/msm7627a/system/etc/permissions/platform. xml'
No private recovery resources for target_device msm7627a
Host Java: apicheck (Out/host/common/obj/java_libraries/apicheck_intermediates/classes)
/Bin/Bash: jar: Command not found
Make: *** [out/host/common/obj/java_libraries/apicheck_intermediates/javalib. jar] Error 127
Mediates/sh_static)
Target buildinfo: Out/target/product/msm8625/system/build. Prop
Host Java: dumpkey (Out/host/common/obj/java_libraries/dumpkey_intermediates/classes)
System/CORE/libmincrypt/tools/dumppublickey. Java: 27: Warning: Sun. Misc. base64encoder is Sun proprietary API and may be removed in a future release
Import sun. Misc. base64encoder;
^
1 warning
/Bin/Bash: jar: Command not found
Make: *** [out/host/common/obj/java_libraries/dumpkey_intermediates/javalib. jar] Error 127
/Bin/Bash: jar: Command not found
Solution:
CD/usr/bin
You must first enter/usr/bin, the same below
Sudo ln-S-F/usr/lib/JVM/jdk1.6.0 _ 30/bin/jar
My JDK is installed in the/usr/lib/JVM/jdk1.6.0 _ 30/directory.
If the prompt javah: commond not found is displayed, follow the instructions and enter the command
CD/usr/bin
Ln-S-F/usr/lib/JVM/jdk1.6.0 _ 30/bin/javah
& Mkdir-P out/target/common/docs/doc-comment-check/assets-SDK \
& CP-fr build/tools/droiddoc/templates/assets/* out/target/common/docs/doc-comment-check/assets /\
& CP-fr build/tools/droiddoc/templates-SDK/assets-SDK/* out/target/common/docs/doc-comment-check/assets-SDK /\
& Touch-f out/target/common/docs/doc-comment-check-timestamp \
) | (RM-RF out/target/common/docs/doc-comment-check out/target/product/msm7627a/obj/java_libraries/doc-comment-check_intermediates/droiddoc-Src-list; exit 45)
/Bin/Bash: Line 1: javadoc: Command not found
Make: *** [out/target/common/docs/doc-comment-check-timestamp] Error 45
When compiling the android environment, the Java-version command clearly indicates that Java has been installed successfully and the environment is set correctly. However, when compiling Android, the check for the Java version fails: the prompt/bin/Bash: Java: Command not found,
This problem still occurs several times after the JDK is reinstalled, so there is no way to make a soft link.
Sudo ln-S/jdk1.6.0 _ 21/bin/JAR/bin/jar
Sudo ln-S/jdk1.6.0 _ 21/bin/Java
Sudo ln-S/jdk1.6.0 _ 21/bin/javac
Sudo ln-S/jdk1.6.0 _ 21/bin/javah
Sudo ln-S/jdk1.6.0 _ 21/bin/javadoc
------------------------------------------------------------
Finally: the compilation is successful...
3,
When compiling android
Lzop: Error while loading shared libraries: liblzo2.so. 2: cannot open shared object file: no such file or directory
Installation: liblzo2-2-32bit-2.06-6.1.2.x86_64.rpm (APT-Get install liblzo2-2)
Sudo apt-Get install liblzo2-dev
Sudo apt-Get install lzop
Sudo apt-Get install alien # alien is not installed by default, so install it first
Sudo alien liblzo2-2-32bit-2.06-6.1.2.x86_64.rpm
# Convert RPM to Deb, after which a XXXX. Deb (http://rpmfind.net/linux/rpm2html/search.php? Query = liblzo2.so. 2)
Sudo dpkg-I liblzo2-2-32bit-2.06-6.1.2.x86_64.deb # Installation