The following error occurred when compiling Android:
[ 28% 1127/3932] Ensuring Jack server is installed and started
FAILED: setup-jack-server
Picture:
Reason: when Jack compiles, there may be multiple people compiling at the same time. At this time, there may be two people using the same port, resulting in port conflict and timeout.
Solution: modify the port number (modify the. Jack settings and. Jack server/config. Properties files)
Step 1:
Open the. Jack settings file in the root directory of the project, and modify Jack. Server. Service. Port and Jack.server.admin.port port. Set the port number as large as possible to reduce the probability of port collision. For example, I set jack.server.service.port to 28078 and jack.server.admin.port to 28079
# Server settings
SERVER_HOST=localhost
SERVER_PORT_SERVICE=28078
SERVER_PORT_ADMIN=28079
# Internal, do not touch
SETTING_VERSION=4
Step 2:
Open the. Jack-server/config.properties file in the root directory of the project, and set jack.server.service.port and jack.server.admin.port to the same values as the steps.
jack.server.idle=180
jack.server.max-service.by-mem=1\=2147483648\:2\=3221225472\:3\=4294967296
jack.server.shutdown=21600
jack.server.time-out=7200
jack.server.max-jars-size=104857600
jack.server.service.port=28078
jack.server.admin.port=28079
jack.server.config.version=4
jack.server.max-service=4
jack.server.deep-idle=900
After modification, if there is no conflict, you can compile normally.
Read More:
- Android 8.1 compilation error Jack server problem
- Solve the problem of available for offline mode in Android studio compilation
- Android studio compilation error: style attribute ‘@ android:attr/windowEnterAnimation ‘not found the ultimate solution
- Unable to install SQL Server (setup.exe), VS Shell installation has failed with exit code 1638.
- Android resource compilation failed (How to Fix)
- Android Studio sync build.gradle appears: Failed to resolve: com.android.support:appcompat problem
- Android compilation error unresolved reference: kotlinx solution
- The problem of MAC switching JDK version and RN Android JDK version leads to compilation failure. Solve it
- [error record] as compilation error (Android support plugin version is too high | upgrade Android studio to the latest version)
- The solution of “failed to load il2cpp” in Android package launched by unity
- mysql problem solving: mysqladmin: connect to server at’localhost’ failed
- Configuration (9) to solve the problem of “setup tools PIP wheel failed with error code 1”, create virtual environments with Python of anaconda
- Android Error | Failed to find target with hash string ”android-23′ in…
- IOS automation: error dyld in Xcode compilation_ shared_ cache_ extract_ Dylibs failed — the solution is as follows
- Android Studio | Failed to find target with hash string ‘android-26’ in: D:\Android\sdk
- Solution to server application error in IIS 5.1
- Solve the problem of installing APK after Android studio compilation: error while installing apk
- Error C2664 in C + + compilation: cannot convert parameter 2 from “const char [5]” to “lpctstr” solution.
- Problem solving: PDF cannot be opened, and acrobat failed to connect to a DDE server appears
- Server Tomcat v8.0 Server at localhost failed to start.