Compile Android 8.1 and report errors related to Jack server
Jack server is an Android source code compilation tool. Used in Android 6.0 ~ Android 8.1 source code. Later versions are obsolete.
Error type 1:
communication error with Jack server (58), try ‘Jack diagnosis’ or see Jack server log
failed to contact Jack server: problem reading/home/user3 /. Jack server/client.pem. Try’ Jack diagnosis’
Error type 2:
Jack server failed to (RE) start, try ‘Jack diagnose’ or see Jack server log
Solution 1:
Open ~ /. Jack settings and ~ /. Jcak server/config.properties to change to other port numbers. Like 8976/8977
note that the two corresponding port numbers in the two files should be consistent
idea 2:
delete ~ /. Jack settings and ~ /. Jcak server/config.properties and recompile
Idea 3: JDK version problem
in my practice, openjdk1.8.0.292 will report that the port is occupied
the test method runs./prebuilds/SDK/tools/Jack diagnosis
printing the log will prompt that the port is occupied. For other unused ports, this is still the case
the solution is to use the JDK provided with the Android source code. Path: prebuilds/JDK/
you can also download other versions of openjdk, such as 1.8.0.141
uninstall the server JDK,
remove the openjdk (if installed). First, check which openjdk package is installed.
dpkg –list | grep -i jdk
To remove the openjdk package:
apt-get purge openjdk*
Check that all openjdk packages have been uninstalled:
dpkg –list | grep -i jdk
Configure the Android directory JDK to ~ /. Bashrc
export JAVA_ Home = {absolute path of your own Android source code} prebuilds/JDK/jdk8/Linux x86
export JRE_ HOME=
J
A
V
A
H
O
M
E
/
j
r
e
e
x
p
o
r
t
C
L
A
S
S
P
A
T
H
=
.
:
{JAVA_ HOME}/jre export CLASSPATH=.:
JAVAHOME/jreexportCLASSPATH=.:{JAVA_ HOME}/lib:
J
R
E
H
O
M
E
/
l
i
b
e
x
p
o
r
t
P
A
T
H
=
.
:
{JRE_ HOME}/lib export PATH=.:
JREHOME/libexportPATH=.:{JAVA_ HOME}/bin:$PATH
Effective changes:
source ~ /. Bashrc
recompile.
Read More:
- Failed in Android compilation: solution to setup Jack server problem
- Solve the problem of available for offline mode in Android studio compilation
- The problem of MAC switching JDK version and RN Android JDK version leads to compilation failure. Solve it
- Android studio compilation error: style attribute ‘@ android:attr/windowEnterAnimation ‘not found the ultimate solution
- Solve the problem of installing APK after Android studio compilation: error while installing apk
- [error record] as compilation error (Android support plugin version is too high | upgrade Android studio to the latest version)
- Gradlew compilation error: mips64el Linux Android strip
- Android compilation error unresolved reference: kotlinx solution
- Android Studio sync build.gradle appears: Failed to resolve: com.android.support:appcompat problem
- [problem record] installed build tools revision 31.0.0 is broken during Android studio compilation
- Error report in idea compilation Error:Android Dex : [Project] java.lang.OutOfMemoryError : GC overhead limit exceeded
- VTK compilation problem solving
- Android resource compilation failed (How to Fix)
- [error record] kotlin code compilation error when Android studio compiles (process @ nonnull parameter when upgrading support library)
- Install Android SDK — stopping ADB server failed (code – 1)
- Android studio error compilation failed see the compiler error output for details.
- Error: Error parsing D:\new_android\Android SDK\system-images\android-25\android-wear\armeabi-v7a\de
- Android solves the gliding problem of EditText
- Idea ignores compilation errors and runs in eclipse compilation mode
- Supplement to the problem of “Session’app’: Error Launching activity” when running on Android