In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces you what is the solution to the problem of Android compiling Jack server errors, the content is very detailed, interested friends can refer to, hope to be helpful to you.
problem
Recently, when compiling Android, I encountered the problem of Jack Server error: Failed to authenticate Jack server certificate. Try 'jack-diagnose'.
Jack server already installed in "/ home/airenao/.jack-server"
Communication error with Jack server (60), try 'jack-diagnose' or see Jack server log
Failed to authenticate Jack server certificate. Try 'jack-diagnose'
Failed to authenticate Jack server certificate. Try 'jack-diagnose'
[2% 40ax 1802] target Java: core-oj (out/target/common/obj/JAVA_LIBRARIES/core-oj_intermediates/classes)
Ninja: build stopped: subcommand failed.
10:27:27 ninja failed with: exit status 1
What is Jack Server?
You can refer to the official instructions: https://source.android.com/setup/build/jack
Jack is a new Android tool chain that compiles Java source code into Android dex bytecode. It replaces the Android tool chain, which was made up of javac, ProGuard, jarjar, dx and other tools.
The Jack toolchain has the following advantages:
Fully open source it is provided in AOSP; and users are welcome to contribute resources.
Improve compilation speed Jack provides the following specific support to reduce compilation time: dex preprocessing, incremental compilation, and Jack compilation server.
Support for compression, obfuscation, repackaging, and multi-dex processing no longer requires the use of separate packages (such as ProGuard)
Insert a picture description of the solution here
There are two solutions, one is to disable when compiling without jack server;, and the other is that when jack is compiled, not one person is compiling, resulting in the same port, so time out, just modify port.
1. Disable Server
This kind of simple and rude, just set a temporary global variable.
Make * ANDROID_FORCE_JACK_ENABLED=disabled-j32
two。 Modify Port
Let's first take a look at what each parameter of Jack Server means.
SERVER=true opens jack server.
SERVER_PORT_SERVICE=8072 sets the port number of the TCP server for assembly and compilation
SERVER_PORT_ADMIN=8073 sets the port number of the TCP server for the administrator's compilation management
SERVER_COUNT=1 is not currently in use and is generally the default
SERVER_NB_COMPILE=4 compiles the maximum thread simultaneously
SERVER_TIMEOUT=60 if the server does not respond within 60 seconds, the service will be shut down
Location of SERVER_LOG=$ {SERVER_LOG:=$SERVER_DIR/jack-$SERVER_PORT_SERVICE.log} Log output
JACK_VM_COMMAND=$ {JACK_VM_COMMAND:=java} start the JVM command
Change the jack-setting file under the home directory and the PORT in the config.properties file under jack-server to be the same.
The following is an example of modifying a larger port number to avoid conflicts with others.
# this file is $HOME/.jack-settings
SERVER_PORT_SERVICE=28076
SERVER_PORT_ADMIN=28077
# this file is $HOME/.jack-server/config.properties
Jack.server.service.port=28076
Summary of jack.server.admin.port=28077
The error message is in log, so pay more attention to console log.
So much for the solution to the problem of Android compiling Jack server errors. I hope the above content can be helpful to you and learn more. If you think the article is good, you can share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.