Firefly Open Source Community

   Login   |   Register   |
New_Topic
Print Previous Topic Next Topic

[Android] Jack server error for AIO-Rk3399 Android 7.1 Build

48

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
48

【Android】 Jack server error for AIO-Rk3399 Android 7.1 Build

Posted at 5/28/2022 14:03:10      View:3685 | Replies:5        Print      Only Author   [Copy Link] 1#
Hi,

I am using AIO-RK3399 Android 7.1 Build on Ubuntu 18.04

UBuntu -
Linux 5.4.0-113-generic #127~18.04.1-Ubuntu SMP Wed May 18 15:40:23 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux



While compiling Android 7.1 on AIO-RK3399J I faced below error -


[ 24% 10189/41233] host C++: libartd <= art/runtime/native/java_lang_reflect_Field.cc
[ 24% 10190/41233] host C++: libartd <= art/runtime/native/java_lang_reflect_AbstractMethod.cc
[ 24% 10191/41233] host C++: libartd <= art/runtime/native/java_lang_reflect_Method.cc
[ 24% 10192/41233] host C++: libartd <= art/runtime/oat.cc
[ 24% 10193/41233] host C++: libartd <= art/runtime/native/java_lang_reflect_Proxy.cc
[ 24% 10194/41233] host C++: libartd <= art/runtime/native/java_lang_reflect_Constructor.cc
[ 24% 10195/41233] host C++: libartd <= art/runtime/native/org_apache_harmony_dalvik_ddmc_DdmVmInternal.cc
[ 24% 10196/41233] Ensure Jack server is installed and started
FAILED: /bin/bash -c "(prebuilts/sdk/tools/jack-admin install-server prebuilts/sdk/tools/jack-launcher.jar prebuilts/sdk/tools/jack-server-4.8.ALPHA.jar  2>&1 || (exit 0) ) && (JACK_SERVER_VM_ARGUMENTS=\"-Dfile.encoding=UTF-8 -XX:+TieredCompilation\" prebuilts/sdk/tools/jack-admin start-server 2>&1 || exit 0 ) && (prebuilts/sdk/tools/jack-admin update server prebuilts/sdk/tools/jack-server-4.8.ALPHA.jar 4.8.ALPHA 2>&1 || exit 0 ) && (prebuilts/sdk/tools/jack-admin update jack prebuilts/sdk/tools/jacks/jack-2.28.RELEASE.jar 2.28.RELEASE || exit 47; prebuilts/sdk/tools/jack-admin update jack prebuilts/sdk/tools/jacks/jack-3.36.CANDIDATE.jar 3.36.CANDIDATE || exit 47; prebuilts/sdk/tools/jack-admin update jack prebuilts/sdk/tools/jacks/jack-4.7.BETA.jar 4.7.BETA || exit 47 )"
Writing client settings in /home/Maneesh/.jack-settings
Installing jack server in "/home/Maneesh/.jack-server"

Warning:
The JKS keystore uses a proprietary format. It is recommended to migrate to PKCS12 which is an industry standard format using "keytool -importkeystore -srckeystore /home/Maneesh/.jack-server/server.jks -destkeystore /home/Maneesh/.jack-server/server.jks -deststoretype pkcs12".

Warning:
The JKS keystore uses a proprietary format. It is recommended to migrate to PKCS12 which is an industry standard format using "keytool -importkeystore -srckeystore /home/Maneesh/.jack-server/client.jks -destkeystore /home/Maneesh/.jack-server/client.jks -deststoretype pkcs12".
Launching Jack server java -XX:MaxJavaStackTraceDepth=-1 -Djava.io.tmpdir=/tmp -Dfile.encoding=UTF-8 -XX:+TieredCompilation -cp /home/Maneesh/.jack-server/launcher.jar com.android.jack.launcher.ServerLauncher
Jack server failed to (re)start, try 'jack-diagnose' or see Jack server log
SSL error when connecting to the Jack server. Try 'jack-diagnose'
SSL error when connecting to the Jack server. Try 'jack-diagnose'
[ 24% 10196/41233] host C++: libartd <= art/runtime/native/org_apache_harmony_dalvik_ddmc_DdmServer.cc
[ 24% 10196/41233] host C++: libartd <= art/runtime/native/sun_misc_Unsafe.cc
[ 24% 10196/41233] host C++: libartd <= art/runtime/object_lock.cc
[ 24% 10196/41233] host C++: libartd <= art/runtime/verifier/register_line.cc
[ 24% 10196/41233] host C++: libartd <= art/runtime/oat_file_assistant.cc
[ 24% 10196/41233] host C++: libartd <= art/runtime/oat_file.cc
[ 24% 10196/41233] host C++: libartd <= art/runtime/oat_file_manager.cc
ninja: build stopped: subcommand failed.
build/core/ninja.mk:148: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
Reply

Use props Report

1080

Credits

0

Prestige

0

Contribution

vip

Rank: 6Rank: 6

Credits
1080
Posted at 5/30/2022 10:03:06        Only Author  2#
~./.bashrc
export LC_ALL=C
Reply

Use props Report

48

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
48
Posted at 5/30/2022 14:14:31        Only Author  3#
Hi jpchen,

Thanks for your reply. I am able to solve my ninja build issue with your suggestions and now my build is completed.

I am facing one MMC /SD-Card related issue can you help me with that ?

Issue :-

I am using AIO- RK3399 J Board for my development and using External SD Card  for storage purpose.
I am able to build and boot the board with Android 7.1 and able to access the external SD card.

While testing  sometime when I am trying to save any data on SD Card i get error  -
SD card is read only.

Error msg -
System.err: java.io.FileNotFoundException: /storage/emulated/0/User_Notes.txt (Read-only file system)

After Restart everything works fine. I checked my SD Card and it is also working fine. No issue in SD Card.


This error is not very frequent. Some time it occur soemtime it didint occure. When I keep writing the sensor data from
my android app to SD Card then after some time I face this issue. But its not frequest.  After Restart everything works fine

Since I am not facing this issue every time hence I am not sure what might be cause for this issue ?

Any suggestion what might be issue in Android BSP side?  Or how can I root-cause this issue ?

NOTE : - I already gave external read and write permission in my android app. I checked my SD Card and it is also working fine.

Thanks
Reply

Use props Report

125

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
125
Posted at 1/11/2026 07:26:01        Only Author  4#
This article is brilliant, and I’ve gained a lot of inspiration from it. Improve your IT skills and get free Valid DP-600 vce test simulator. Best of luck in your studies!
Reply

Use props Report

139

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
139
Posted at 2/19/2026 23:11:07        Only Author  5#
I really appreciate your article, it has deeply impacted me. New SOL-C01 braindumps free offers amazing content, and it’s available to you without charge.
Reply

Use props Report

130

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
130
Posted at 3 day before        Only Author  6#
This is incredible, like is given. The BAPv5 new test materials questions are your secret weapon for career growth—now available for free!
Reply

Use props Report

You need to log in before you can reply Login | Register

This forum Credits Rules

Quick Reply Back to top Back to list