Build brave get error

./src/build/android/gradle/generate_gradle.py --output-directory ./src/out/android_Debug_arm
FAILED: gen/build/android/test/incremental_javac_gn/no_signature_change_prebuilt_generator.jar
python3 …/…/build/android/test/incremental_javac_gn/incremental_javac_test_android_library.py --target-name //build/android/test/incremental_javac_gn:changing_java --gn-args-path args.gn --out-dir obj/build/android/test/incremental_javac_gn/no_signature_change_prebuilt_generator/incremental_javac_out --out-jar gen/build/android/test/incremental_javac_gn/no_signature_change_prebuilt_generator.jar
Traceback (most recent call last):
File “/media/andy/newdisk/hayekbrowserandroid/src/brave/src/out/android_Debug_arm/…/…/build/android/test/incremental_javac_gn/incremental_javac_test_android_library.py”, line 154, in
main()
File “/media/andy/newdisk/hayekbrowserandroid/src/brave/src/out/android_Debug_arm/…/…/build/android/test/incremental_javac_gn/incremental_javac_test_android_library.py”, line 134, in main
ninja_output = _run_command(ninja_args, env=ninja_env)
File “/media/andy/newdisk/hayekbrowserandroid/src/brave/src/out/android_Debug_arm/…/…/build/android/test/incremental_javac_gn/incremental_javac_test_android_library.py”, line 54, in _run_command
_raise_command_exception(args, p.returncode, pout)
File “/media/andy/newdisk/hayekbrowserandroid/src/brave/src/out/android_Debug_arm/…/…/build/android/test/incremental_javac_gn/incremental_javac_test_android_library.py”, line 41, in _raise_command_exception
raise Exception(message)
Exception: Command failed with status 1: [PosixPath(‘/media/andy/newdisk/hayekbrowserandroid/src/brave/src/third_party/ninja/ninja’), ‘-C’, PosixPath(‘/media/andy/newdisk/hayekbrowserandroid/src/brave/src/out/android_Debug_arm/obj/build/android/test/incremental_javac_gn/no_signature_change_prebuilt_generator/incremental_javac_out’), ‘build/android/test/incremental_javac_gn:changing_java’]
Output:-----------------------------------------
ninja: Entering directory `/media/andy/newdisk/hayekbrowserandroid/src/brave/src/out/android_Debug_arm/obj/build/android/test/incremental_javac_gn/no_signature_change_prebuilt_generator/incremental_javac_out’
[1/351] STAMP obj/build/android/test/incremental_javac_gn/changing_java__assetres.stamp
[2/351] STAMP obj/third_party/android_deps/com_github_kevinstern_software_and_algorithms_java__validate.stamp
[3/351] STAMP obj/third_party/android_deps/com_google_auto_service_auto_service_annotations_java__validate.stamp
[4/351] STAMP obj/third_party/android_deps/com_google_auto_value_auto_value_annotations_java__validate.stamp

google_auto_service_auto_service_annotations.ijar.jar @obj/tools/android/errorprone_plugin/errorprone_plugin.javac.jar.staging/files_list.txt
注: …/…/…/…/…/…/…/…/…/tools/android/errorprone_plugin/src/org/chromium/tools/errorprone/plugin/NoSynchronizedMethodCheck.java使用或覆盖了已过时的 API。
注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
I 439183 467 Joining multiprocessing.Pool
I 439183 468 Done.

Command failed because it wrote to stderr.
You can often set treat_warnings_as_errors=false to not treat output as failure (useful when developing locally).
I 439183 469 Job’s done (compile_java.py)
[336/351] ACTION //build/android/test/incremental_javac_gn:changing_java__dex(//build/toolchain/android:android_clang_arm)
ninja: build stopped: subcommand failed.


ninja: build stopped: subcommand failed.
Traceback (most recent call last):
File “/media/andy/newdisk/hayekbrowserandroid/src/brave/./src/build/android/gradle/generate_gradle.py”, line 945, in
main()
File “/media/andy/newdisk/hayekbrowserandroid/src/brave/./src/build/android/gradle/generate_gradle.py”, line 933, in main
_BuildTargets(output_dir, targets)
File “/media/andy/newdisk/hayekbrowserandroid/src/brave/./src/build/android/gradle/generate_gradle.py”, line 122, in _BuildTargets
subprocess.check_call(cmd)
File “/usr/lib/python3.10/subprocess.py”, line 369, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘[‘autoninja’, ‘-C’, ‘/media/andy/newdisk/hayekbrowserandroid/src/brave/src/out/android_Debug_arm’, ‘obj/third_party/android_deps/google_play_services_vision_common_java/classes.jar’, ‘obj/third_party/androidx/androidx_activity_activity_java/classes.jar’, ‘obj/third_party/androidx/androidx_test_runner_java/classes.jar’, ‘obj/third_party/androidx/androidx_test_core_java/classes.jar’, ‘obj/third_party/androidx/androidx_multidex_multidex_java/classes.jar’, ‘obj/brave/third_party/android_deps/com_google_android_exoplayer_extension_cast_java/classes.jar’, ‘obj/brave/third_party/android_deps/com_google_android_exoplayer_exoplayer_common_java/classes.jar’, ‘obj/third_party/androidx/androidx_annotation_annotation_experimental_java/classes.jar’, ‘obj/brave/third_party/android_deps/com_google_android_exoplayer_exoplayer_datasource_java/classes.jar’, ‘obj/third_party/androidx/androidx_lifecycle_lifecycle_runtime_java/classes.jar’, ‘obj/brave/third_party/android_deps/com_github_bumptech_glide_java/classes.jar’, ‘obj/third_party/gvr-android-sdk/gvr_common_java/classes.jar’, ‘obj/brave/third_party/android_deps/com_wireguard_android_java/classes.jar’, ‘obj/third_party/androidx/androidx_webkit_webkit_java/classes.jar’, ‘obj/third_party/android_deps/com_google_android_material_material_java/classes.jar’, ‘obj/third_party/androidx/androidx_benchmark_benchmark_junit4_java/classes.jar’, ‘obj/third_party/androidx/androidx_fragment_fragment_java/classes.jar’, ‘obj/third_party/androidx/androidx_lifecycle_lifecycle_viewmodel_java/classes.jar’, ‘obj/third_party/androidx/androidx_asynclayoutinflater_asynclayoutinflater_appcompat_java/classes.jar’, ‘obj/third_party/junit/junit.javac.jar’, ‘obj/third_party/android_deps/google_play_services_gcm_java/classes.jar’, ‘obj/brave/third_party/android_deps/com_android_installreferrer_java/classes.jar’, ‘obj/third_party/android_deps/google_play_services_location_java/classes.jar’, ‘obj/third_party/androidx/androidx_viewpager2_viewpager2_java/classes.jar’, ‘obj/third_party/androidx/androidx_vectordrawable_vectordrawable_animated_java/classes.jar’, ‘obj/third_party/androidx/androidx_privacysandbox_ads_ads_adservices_java_java/classes.jar’, ‘obj/brave/third_party/android_deps/com_google_android_play_integrity_java/classes.jar’, ‘obj/third_party/android_deps/google_firebase_firebase_messaging_java/classes.jar’, ‘obj/third_party/androidx/androidx_mediarouter_mediarouter_java/classes.jar’, ‘obj/third_party/androidx/androidx_core_core_java/classes.jar’, ‘obj/third_party/android_deps/google_play_services_tasks_java/classes.jar’, ‘obj/third_party/androidx/androidx_viewpager_viewpager_java/classes.jar’, ‘obj/third_party/androidx/androidx_constraintlayout_constraintlayout_java/classes.jar’, ‘obj/brave/third_party/android_deps/com_google_android_exoplayer_exoplayer_ui_java/classes.jar’, ‘obj/third_party/androidx/androidx_test_rules_java/classes.jar’, ‘obj/third_party/androidx/androidx_recyclerview_recyclerview_java/classes.jar’, ‘obj/third_party/arcore-android-sdk-client/com_google_ar_core_java/classes.jar’, ‘obj/third_party/androidx/androidx_privacysandbox_ads_ads_adservices_java/classes.jar’, ‘obj/third_party/androidx/androidx_lifecycle_lifecycle_livedata_java/classes.jar’, ‘obj/third_party/androidx/androidx_test_ext_junit_java/classes.jar’, ‘obj/third_party/androidx/androidx_cardview_cardview_java/classes.jar’, ‘obj/third_party/androidx/androidx_swiperefreshlayout_swiperefreshlayout_java/classes.jar’, ‘obj/third_party/androidx/androidx_vectordrawable_vectordrawable_java/classes.jar’, ‘gen/build/android/test/incremental_javac_gn/no_signature_change_prebuilt_generator.jar’, ‘obj/third_party/android_deps/google_play_services_cast_framework_java/classes.jar’, ‘obj/third_party/android_deps/com_android_support_drawerlayout_java/classes.jar’, ‘obj/brave/third_party/android_deps/com_android_billingclient_java/classes.jar’, ‘obj/third_party/android_deps/google_firebase_firebase_iid_java/classes.jar’, ‘obj/brave/third_party/android_deps/com_google_android_exoplayer_exoplayer_core_java/classes.jar’, ‘obj/third_party/androidx/androidx_interpolator_interpolator_java/classes.jar’, ‘obj/third_party/androidx/androidx_appcompat_appcompat_java/classes.jar’, ‘obj/brave/third_party/android_deps/google_play_services_safetynet_java/classes.jar’, ‘obj/brave/third_party/android_deps/com_google_android_datatransport_transport_runtime_java/classes.jar’, ‘obj/third_party/androidx/androidx_preference_preference_java/classes.jar’, ‘obj/third_party/androidx/androidx_savedstate_savedstate_java/classes.jar’, ‘obj/third_party/android_deps/google_play_services_iid_java/classes.jar’, ‘obj/third_party/androidx/androidx_fragment_fragment_testing_java/classes.jar’, ‘obj/third_party/androidx/androidx_media_media_java/classes.jar’, ‘obj/brave/third_party/android_deps/com_google_android_play_core_java/classes.jar’, ‘obj/third_party/androidx/androidx_benchmark_benchmark_macro_junit4_java/classes.jar’, ‘obj/third_party/gvr-android-sdk/controller_test_api_java/classes.jar’, ‘obj/third_party/androidx/androidx_test_uiautomator_uiautomator_java/classes.jar’, ‘obj/brave/third_party/android_deps/com_airbnb_android_java/classes.jar’, ‘obj/third_party/androidx/androidx_customview_customview_java/classes.jar’, ‘obj/third_party/androidx/androidx_appcompat_appcompat_resources_java/classes.jar’, ‘obj/third_party/androidx/androidx_drawerlayout_drawerlayout_java/classes.jar’, ‘obj/third_party/android_deps/google_play_services_auth_base_java/classes.jar’, ‘obj/third_party/androidx/androidx_test_monitor_java/classes.jar’, ‘obj/brave/third_party/android_deps/com_google_android_exoplayer_exoplayer_database_java/classes.jar’, ‘obj/third_party/androidx/androidx_browser_browser_java/classes.jar’, ‘obj/third_party/android_deps/google_play_services_basement_java/classes.jar’, ‘obj/third_party/androidx/androidx_coordinatorlayout_coordinatorlayout_java/classes.jar’, ‘obj/brave/third_party/android_deps/com_brave_playlist_java/classes.jar’, ‘obj/third_party/androidx/androidx_gridlayout_gridlayout_java/classes.jar’, ‘obj/third_party/android_deps/google_play_services_vision_java/classes.jar’, ‘obj/third_party/android_deps/google_play_services_cast_java/classes.jar’, ‘obj/third_party/androidx/androidx_benchmark_benchmark_macro_java/classes.jar’, ‘obj/third_party/androidx/androidx_room_room_runtime_java/classes.jar’, ‘obj/third_party/android_deps/google_play_services_base_java/classes.jar’, ‘obj/brave/third_party/android_deps/com_google_android_exoplayer_exoplayer_decoder_java/classes.jar’, ‘obj/third_party/androidx/androidx_localbroadcastmanager_localbroadcastmanager_java/classes.jar’, ‘obj/third_party/android_deps/google_play_services_auth_api_phone_java/classes.jar’, ‘obj/brave/third_party/android_deps/com_google_android_exoplayer_exoplayer_extractor_java/classes.jar’, ‘obj/brave/third_party/android_deps/com_google_android_datatransport_transport_backend_cct_java/classes.jar’, ‘obj/brave/third_party/android_deps/com_google_android_exoplayer_extension_mediasession_java/classes.jar’, ‘obj/third_party/androidx/androidx_asynclayoutinflater_asynclayoutinflater_java/classes.jar’, ‘obj/third_party/androidx/androidx_lifecycle_lifecycle_livedata_core_java/classes.jar’]’ returned non-zero exit status 1.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.