gpt4 book ai didi

android - 由于AppCompat-v7 9修补程序镜像,Jenkins中的Gradle构建失败,但在本地构建时通过

转载 作者:行者123 更新时间:2023-12-03 04:25:03 29 4
gpt4 key购买 nike

升级gradle版本后:

dependencies {
classpath 'com.android.tools.build:gradle:3.0.0'
}

Jenkins 构建开始失败。但是构建仍然可以在本地计算机上成功。错误如下:
C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\appcompat-v7-23.4.0.aar\6abe4391fc97307e05e4ad56d2401e4b\res\drawable-mdpi-v4\abc_ic_menu_cut_mtrl_alpha.png: error: file not found.

C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\appcompat-v7-23.4.0.aar\6abe4391fc97307e05e4ad56d2401e4b\res\drawable-mdpi-v4\abc_btn_rating_star_on_mtrl_alpha.png: error: file not found.

C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\appcompat-v7-23.4.0.aar\6abe4391fc97307e05e4ad56d2401e4b\res\drawable-mdpi-v4\abc_ab_share_pack_mtrl_alpha.9.png: error: file not found.

C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\appcompat-v7-23.4.0.aar\6abe4391fc97307e05e4ad56d2401e4b\res\drawable-hdpi-v4\abc_textfield_activated_mtrl_alpha.9.png: error: file not found.

C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\appcompat-v7-23.4.0.aar\6abe4391fc97307e05e4ad56d2401e4b\res\anim\abc_slide_out_bottom.xml: error: file not found.

C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\appcompat-v7-23.4.0.aar\6abe4391fc97307e05e4ad56d2401e4b\res\drawable-hdpi-v4\abc_list_pressed_holo_light.9.png: error: file not found.

C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\appcompat-v7-23.4.0.aar\6abe4391fc97307e05e4ad56d2401e4b\res\drawable-xxxhdpi-v4\abc_ic_star_black_36dp.png: error: file not found.

C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\appcompat-v7-23.4.0.aar\6abe4391fc97307e05e4ad56d2401e4b\res\color-v23\abc_color_highlight_material.xml: error: file not found.

并且还有另一组错误,如下所示:
Error: java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.AaptException: 
AAPT err(Facade for 26900479): \\?\C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\appcompat-v7-23.4.0.aar\6abe4391fc97307e05e4ad56d2401e4b\res\drawable-mdpi-v4\abc_list_selector_disabled_holo_dark.9.png ERROR: Unable to open PNG file
AAPT err(Facade for 2056119429): \\?\C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\appcompat-v7-23.4.0.aar\6abe4391fc97307e05e4ad56d2401e4b\res\drawable-xhdpi-v4\abc_btn_switch_to_on_mtrl_00012.9.png ERROR: Unable to open PNG file
AAPT err(Facade for 2056119429): \\?\C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\appcompat-v7-23.4.0.aar\6abe4391fc97307e05e4ad56d2401e4b\res\drawable-hdpi-v4\abc_spinner_mtrl_am_alpha.9.png ERROR: Unable to open PNG file
AAPT err(Facade for 1666675794): \\?\C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\appcompat-v7-23.4.0.aar\6abe4391fc97307e05e4ad56d2401e4b\res\drawable-xxhdpi-v4\abc_list_pressed_holo_dark.9.png ERROR: Unable to open PNG file
AAPT err(Facade for 2056119429): \\?\C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\appcompat-v7-23.4.0.aar\6abe4391fc97307e05e4ad56d2401e4b\res\drawable-xxhdpi-v4\abc_menu_hardkey_panel_mtrl_mult.9.png ERROR: Unable to open PNG file
AAPT err(Facade for 26900479): \\?\C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\appcompat-v7-23.4.0.aar\6abe4391fc97307e05e4ad56d2401e4b\res\drawable-hdpi-v4\abc_list_pressed_holo_dark.9.png ERROR: Unable to open PNG file
AAPT err(Facade for 26900479): \\?\C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\appcompat-v7-23.4.0.aar\6abe4391fc97307e05e4ad56d2401e4b\res\drawable-xxxhdpi-v4\abc_switch_track_mtrl_alpha.9.png ERROR: Unable to open PNG file
AAPT err(Facade for 812880108): \\?\C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\appcompat-v7-23.4.0.aar\6abe4391fc97307e05e4ad56d2401e4b\res\drawable-xxxhdpi-v4\abc_btn_switch_to_on_mtrl_00012.9.png ERROR: Unable to open PNG file
AAPT err(Facade for 2051797348): \\?\C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\appcompat-v7-23.4.0.aar\6abe4391fc97307e05e4ad56d2401e4b\res\drawable-xhdpi-v4\abc_list_pressed_holo_light.9.png ERROR: Unable to open PNG file
AAPT err(Facade for 812880108): \\?\C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\appcompat-v7-23.4.0.aar\6abe4391fc97307e05e4ad56d2401e4b\res\drawable-hdpi-v4\abc_menu_hardkey_panel_mtrl_mult.9.png ERROR: Unable to open PNG file
AAPT err(Facade for 26900479): \\?\C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\appcompat-v7-23.4.0.aar\6abe4391fc97307e05e4ad56d2401e4b\res\drawable-hdpi-v4\abc_scrubber_primary_mtrl_alpha.9.png ERROR: Unable to open PNG file
AAPT err(Facade for 26900479): \\?\C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\appcompat-v7-23.4.0.aar\6abe4391fc97307e05e4ad56d2401e4b\res\drawable-hdpi-v4\abc_list_focused_holo.9.png ERROR: Unable to open PNG file
AAPT err(Facade for 26900479): \\?\C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\appcompat-v7-23.4.0.aar\6abe4391fc97307e05e4ad56d2401e4b\res\drawable-xxhdpi-v4\abc_list_selector_disabled_holo_light.9.png ERROR: Unable to open PNG file

我尝试了许多SO问题提出的许多解决方案,但没有任何效果。以下是我尝试的解决方案。
1. Changed the build directory thinking the path is too long for Windows.
2. Disabled build cache in gradle.properties.
3. AAPT2 made it to true and false for checking whether that is causing.

最佳答案

我也有同样的问题。我找到了答案,并确认它是正确的。

禁用构建缓存可能会损害您的开发效率。尝试将jenkins中的环境变量GRADLE_USER_HOME设置到另一个文件夹,例如c:/ Users / someuser

关于android - 由于AppCompat-v7 9修补程序镜像,Jenkins中的Gradle构建失败,但在本地构建时通过,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47285296/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com