美文网首页
ubuntu 22.04.2 编译Android 8.1.0问题

ubuntu 22.04.2 编译Android 8.1.0问题

作者: iPlanetcn | 来源:发表于2023-05-23 10:20 被阅读0次
    Screen Shot 2023-05-24 at 10.20.57.png

    1. SSL error when connecting to the Jack server. Try 'jack-diagnose'

    解决方法:

    编辑 /etc/lib/jvm/java-8-openjdk-amd64/security/java.security

    sudo vi /etc/lib/jvm/java-8-openjdk-amd64/security/java.security
    

    找到并去掉 TLSv1, TLSv1.1

    在aosp根目录执行命令,重启jack-admin

    cd ./prebuilts/sdk/tools/ 
    ./jack-admin kill-server 
    ./jack-admin start-server
    

    2. Syntax error when building from android source

    FAILED: out/target/common/obj/all-event-log-tags.txt
    /bin/bash -c "build/tools/merge-event-log-tags.py -o out/target/common/obj/all-event-log-tags.txt frameworks/base/core/java/android/app/admin/SecurityLogTags.logtags frameworks/base/core/java/android/content/EventLogTags.logtags frameworks/base/core/java/android/net/EventLogTags.logtags frameworks/base/core/java/android/speech/tts/EventLogTags.logtags frameworks/base/core/java/android/webkit/EventLogTags.logtags frameworks/base/core/java/com/android/internal/logging/EventLogTags.logtags frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/EventLogTags.logtags frameworks/base/packages/SystemUI/src/com/android/systemui/EventLogTags.logtags frameworks/base/services/core/java/com/android/server/EventLogTags.logtags frameworks/base/services/core/java/com/android/server/am/EventLogTags.logtags frameworks/ex/common/java/com/android/common/GoogleLogTags.logtags frameworks/native/services/surfaceflinger/EventLog/EventLogTags.logtags frameworks/opt/telephony/src/java/com/android/internal/telephony/EventLogTags.logtags packages/apps/QuickSearchBox/src/com/android/quicksearchbox/EventLogTags.logtags packages/apps/Settings/src/com/android/settings/EventLogTags.logtags packages/providers/CalendarProvider/src/com/android/providers/calendar/EventLogTags.logtags packages/providers/ContactsProvider/src/com/android/providers/contacts/EventLogTags.logtags packages/services/Telephony/src/com/android/phone/EventLogTags.logtags system/bt/main/../EventLogTags.logtags system/core/liblog/event.logtags system/core/libsysutils/EventLogTags.logtags system/core/logcat/event.logtags system/core/logd/event.logtags"
    File "build/tools/merge-event-log-tags.py", line 51
    except getopt.GetoptError, err:
    ^
    SyntaxError: invalid syntax
    [ 0% 92/35341] host C++: aapt <= frameworks/base/tools/aapt/Main.cpp
    ninja: build stopped: subcommand failed.
    16:27:01 ninja failed with: exit status 1
    make: *** [build/core/main.mk:21: run_soong_ui] Error 1
    
    #### make failed to build some targets (53 seconds) ####
    

    解决方法:安装并使用python2

    sudo apt install python2
    sudo ln -sf /usr/bin/python2 /usr/bin/python
    

    3. FAILED: out/target/product/generic/dex_bootjars/system/framework/arm/boot.art

    解决方法:

    sudo make -j8 ALLOW_MISSING_DEPENDENCIES=true WITH_DEXPREOPT=false
    

    相关文章

      网友评论

          本文标题:ubuntu 22.04.2 编译Android 8.1.0问题

          本文链接:https://www.haomeiwen.com/subject/ytxlqxtx.html