bytedance / AabResGuard

The tool of obfuscated aab resources.(Android app bundle资源混淆工具)
Apache License 2.0
1.32k stars 182 forks source link

Execution failed for task ':app:aabresguardRelease'. > jarsigner failed with exit code 2: #57

Open trycatchx opened 3 years ago

trycatchx commented 3 years ago

版本0.1.8 as 4.2.1 gradle 6.1.1

打 bundle aab 包时候签名出现问题。

JingYeoh commented 3 years ago

@zhangchaojiong 辛苦附上更详细的堆栈信息

trycatchx commented 3 years ago

@JingYeoh 这是我能看到的所有 log :

> Task :app:aabresguardRelease
Task :app:aabresguardRelease in app Starting
Caching disabled for task ':app:aabresguardRelease' because:
  Caching has not been enabled for the task
Task ':app:aabresguardRelease' is not up-to-date because:
  Task.upToDateWhen is false.
AabResGuardExtension
    enableObfuscate=true    mappingFile=null    whiteList=[*.R.string.default_web_client_id, *.R.string.firebase_database_url, *.R.string.gcm_defaultSenderId, *.R.string.google_api_key, *.R.string.google_app_id, *.R.string.google_crash_reporting_api_key, *.R.string.google_storage_bucket, *.R.string.project_id, *.R.string.com.crashlytics.android.build_id, *.R.string.com.google.firebase.*, *.R.string.fcm_fallback_notification_channel_label, *.R.string.s*]
    obfuscatedBundleFileName=Tik_Downloader_1.0.10.0622.aab
    mergeDuplicatedRes=true
    enableFilterFiles=true
    filterList=[BUNDLE-METADATA/**/proguard.map, META-INF/*]    enableFilterStrings=false
    unusedStringPath=/Users/jiong/githublibs/TikDownloder/app/unused.txt
    languageWhiteoolean`List=[]
-------------- sign configuration --------------
    storeFile : /Users/jiong/githublibs/TikDownloder/app/tikdownloader.jks
    keyPassword : tes****
    alias : downl****
    storePassword : tes****
-------------- sign configuration --------------
not exists unused.txt : /Users/jiong/githublibs/TikDownloder/app/build/outputs/mapping/release/release/unused.txt
use default path : /Users/jiong/githublibs/TikDownloder/app/unused.txt
analyze bundle file done, const 26
[filter] metadata file is filtered, path: BUNDLE-METADATA/com.android.tools.build.obfuscation/proguard.map
filter bundle files done, coast 10-----------------------------------------
Reduce file count: 1
Reduce file size: 3.4MB
-----------------------------------------
[merge duplicated] found duplicated file, path: base/res/drawable/ic_mtrl_chip_checked_circle.xml
[merge duplicated] found duplicated file, path: base/res/anim/abc_fade_in.xml
[merge duplicated] found duplicated file, path: base/res/color/mtrl_text_btn_text_color_selector.xml
[merge duplicated] found duplicated file, path: base/res/animator/mtrl_btn_unelevated_state_list_anim.xml
[merge duplicated] found duplicated file, path: base/res/interpolator/btn_checkbox_unchecked_mtrl_animation_interpolator_1.xml
[merge duplicated] found duplicated file, path: base/res/color/mtrl_btn_stroke_color_selector.xml
[merge duplicated] found duplicated file, path: base/res/animator/mtrl_chip_state_list_anim.xml
[merge duplicated] found duplicated file, path: base/res/drawable/ksw_md_back_color.xml
[merge duplicated] found duplicated file, path: base/res/drawable/ijkplayer_seekbar_thumb_pressed.xml
[merge duplicated] found duplicated file, path: base/res/anim/dock_top_exit.xml
[merge duplicated] found duplicated file, path: base/res/drawable-xxxhdpi-v4/ic_launcher_background.png
[merge duplicated] found duplicated file, path: base/res/drawable/ijkplayer_view_click_bg.xml
[merge duplicated] found duplicated file, path: base/res/drawable-xxhdpi-v4/ic_link.png
[merge duplicated] found duplicated file, path: base/res/drawable/sel_player_back.xml
[merge duplicated] found duplicated file, path: base/res/color/mtrl_chip_ripple_color.xml
[merge duplicated] found duplicated file, path: base/res/drawable-xxhdpi-v4/ic_action_dark_settings.webp
[merge duplicated] found duplicated file, path: base/res/drawable-xxhdpi-v4/ic_action_dark_filter.webp
[merge duplicated] found duplicated file, path: base/res/drawable-xxhdpi-v4/ic_action_volume_off.webp
[merge duplicated] found duplicated file, path: base/res/drawable-anydpi-v21/ic_launcher_background.xml
[merge duplicated] found duplicated file, path: base/res/drawable/mtrl_tabs_default_indicator.xml
[merge duplicated] found duplicated file, path: base/res/color/mtrl_chip_close_icon_tint.xml
[merge duplicated] found duplicated file, path: base/res/drawable-xxhdpi-v4/ic_ad_mark.png
[merge duplicated] found duplicated file, path: base/res/drawable-xxhdpi-v4/ic_action_brightness.webp
[merge duplicated] found duplicated file, path: base/res/drawable-xxhdpi-v4/ic_action_volume_up.webp
[merge duplicated] found duplicated file, path: base/res/interpolator/btn_checkbox_unchecked_mtrl_animation_interpolator_0.xml
[merge duplicated] found duplicated file, path: base/res/drawable-hdpi-v4/ic_launcher_background.png
[merge duplicated] found duplicated file, path: base/res/drawable-xhdpi-v4/abc_list_divider_mtrl_alpha.9.png
[merge duplicated] found duplicated file, path: base/res/animator/mtrl_fab_show_motion_spec.xml
[merge duplicated] found duplicated file, path: base/res/layout/abc_activity_chooser_view_list_item.xml
[merge duplicated] found duplicated file, path: base/res/layout/custom_dialog.xml
[merge duplicated] found duplicated file, path: base/res/drawable/ic_mtrl_chip_close_circle.xml
[merge duplicated] found duplicated file, path: base/res/color/mtrl_btn_text_btn_ripple_color.xml
[merge duplicated] found duplicated file, path: base/res/drawable/mtrl_snackbar_background.xml
[merge duplicated] found duplicated file, path: base/res/color/mtrl_bottom_nav_colored_item_tint.xml
[merge duplicated] found duplicated file, path: base/res/anim/dock_top_enter.xml
[merge duplicated] found duplicated file, path: base/res/color/mtrl_tabs_icon_color_selector_colored.xml
[merge duplicated] found duplicated file, path: base/res/layout/abc_activity_chooser_view.xml
[merge duplicated] found duplicated file, path: base/res/color/mtrl_bottom_nav_item_tint.xml
[merge duplicated] found duplicated file, path: base/res/interpolator/fast_out_slow_in.xml
[merge duplicated] found duplicated file, path: base/res/drawable/bg_dialog_download.xml
[merge duplicated] found duplicated file, path: base/res/drawable/bg_pop_menu_down.xml
[merge duplicated] found duplicated file, path: base/res/drawable-xxhdpi-v4/ic_fetch_audio.png
[merge duplicated] found duplicated file, path: base/res/drawable-xxhdpi-v4/ic_main_download.png
[merge duplicated] found duplicated file, path: base/res/drawable-xxhdpi-v4/dialog_close.png
[merge duplicated] found duplicated file, path: base/res/drawable-xxhdpi-v4/ic_list_play.png
[merge duplicated] found duplicated file, path: base/res/anim/dock_bottom_enter.xml
[merge duplicated] found duplicated file, path: base/res/drawable/dialog_video_link_bg.xml
[merge duplicated] found duplicated file, path: base/res/drawable-xxhdpi-v4/ic_launcher_background.png
[merge duplicated] found duplicated file, path: base/res/drawable/view_click_bg_2.xml
[merge duplicated] found duplicated file, path: base/res/interpolator/mtrl_linear.xml
[merge duplicated] found duplicated file, path: base/res/drawable-xhdpi-v4/ic_launcher_background.png
[merge duplicated] found duplicated file, path: base/res/drawable/ic_mtrl_chip_checked_black.xml
[merge duplicated] found duplicated file, path: base/res/drawable-hdpi-v4/abc_list_divider_mtrl_alpha.9.png
[merge duplicated] found duplicated file, path: base/res/drawable-mdpi-v4/ic_launcher_background.png
[merge duplicated] found duplicated file, path: base/res/color/mtrl_fab_ripple_color.xml
[merge duplicated] found duplicated file, path: base/res/drawable/view_click_bg_1.xml
[merge duplicated] found duplicated file, path: base/res/anim/abc_slide_out_bottom.xml
[merge duplicated] found duplicated file, path: base/res/anim/abc_slide_out_top.xml
[merge duplicated] found duplicated file, path: base/res/color/mtrl_tabs_colored_ripple_color.xml
[merge duplicated] found duplicated file, path: base/res/layout/dialog_video_link.xml
[merge duplicated] found duplicated file, path: base/res/color/mtrl_chip_background_color.xml
[merge duplicated] found duplicated file, path: base/res/anim/abc_slide_in_top.xml
[merge duplicated] found duplicated file, path: base/res/layout/abc_action_bar_up_container.xml
[merge duplicated] found duplicated file, path: base/res/color-v23/abc_tint_edittext.xml
[merge duplicated] found duplicated file, path: base/res/color/mtrl_tabs_ripple_color.xml
[merge duplicated] found duplicated file, path: base/res/anim/abc_slide_in_bottom.xml
[merge duplicated] found duplicated file, path: base/res/anim/dock_bottom_exit.xml
[merge duplicated] found duplicated file, path: base/res/animator/mtrl_fab_hide_motion_spec.xml
[merge duplicated] found duplicated file, path: base/res/interpolator/btn_radio_to_on_mtrl_animation_interpolator_0.xml
[merge duplicated] found duplicated file, path: base/res/anim/anim_alpha_out.xml
[merge duplicated] found duplicated file, path: base/res/anim/abc_fade_out.xml
[merge duplicated] duplicated count 71, total size: 6.2KB
merge duplicated resources done, coast 35
-----------------------------------------
Reduce file count: 71
Reduce file size: 6.2KB
-----------------------------------------
[whiteList] find whiteList resource, resource: com.tiktokvideodownloader.freedownloader.nowatermark.R.string.com.crashlytics.android.build_id, id: 0x7f0d002f
[whiteList] find whiteList resource, resource: com.tiktokvideodownloader.freedownloader.nowatermark.R.string.default_web_client_id, id: 0x7f0d0049
[whiteList] find whiteList resource, resource: com.tiktokvideodownloader.freedownloader.nowatermark.R.string.fcm_fallback_notification_channel_label, id: 0x7f0d0051
[whiteList] find whiteList resource, resource: com.tiktokvideodownloader.freedownloader.nowatermark.R.string.firebase_database_url, id: 0x7f0d0055
[whiteList] find whiteList resource, resource: com.tiktokvideodownloader.freedownloader.nowatermark.R.string.gcm_defaultSenderId, id: 0x7f0d0056
[whiteList] find whiteList resource, resource: com.tiktokvideodownloader.freedownloader.nowatermark.R.string.google_api_key, id: 0x7f0d0057
[whiteList] find whiteList resource, resource: com.tiktokvideodownloader.freedownloader.nowatermark.R.string.google_app_id, id: 0x7f0d0058
[whiteList] find whiteList resource, resource: com.tiktokvideodownloader.freedownloader.nowatermark.R.string.google_crash_reporting_api_key, id: 0x7f0d0059
[whiteList] find whiteList resource, resource: com.tiktokvideodownloader.freedownloader.nowatermark.R.string.google_storage_bucket, id: 0x7f0d005a
[whiteList] find whiteList resource, resource: com.tiktokvideodownloader.freedownloader.nowatermark.R.string.project_id, id: 0x7f0d00a6
[whiteList] find whiteList resource, resource: com.tiktokvideodownloader.freedownloader.nowatermark.R.string.s1, id: 0x7f0d00a9
[whiteList] find whiteList resource, resource: com.tiktokvideodownloader.freedownloader.nowatermark.R.string.s2, id: 0x7f0d00aa
[whiteList] find whiteList resource, resource: com.tiktokvideodownloader.freedownloader.nowatermark.R.string.s3, id: 0x7f0d00ab
[whiteList] find whiteList resource, resource: com.tiktokvideodownloader.freedownloader.nowatermark.R.string.s4, id: 0x7f0d00ac
[whiteList] find whiteList resource, resource: com.tiktokvideodownloader.freedownloader.nowatermark.R.string.s5, id: 0x7f0d00ad
[whiteList] find whiteList resource, resource: com.tiktokvideodownloader.freedownloader.nowatermark.R.string.s6, id: 0x7f0d00ae
[whiteList] find whiteList resource, resource: com.tiktokvideodownloader.freedownloader.nowatermark.R.string.s7, id: 0x7f0d00af
[whiteList] find whiteList resource, resource: com.tiktokvideodownloader.freedownloader.nowatermark.R.string.search_menu_title, id: 0x7f0d00b0
[whiteList] find whiteList resource, resource: com.tiktokvideodownloader.freedownloader.nowatermark.R.string.settings_about, id: 0x7f0d00b1
[whiteList] find whiteList resource, resource: com.tiktokvideodownloader.freedownloader.nowatermark.R.string.settings_download_path_default_des, id: 0x7f0d00b2
[whiteList] find whiteList resource, resource: com.tiktokvideodownloader.freedownloader.nowatermark.R.string.settings_download_path_des, id: 0x7f0d00b3
[whiteList] find whiteList resource, resource: com.tiktokvideodownloader.freedownloader.nowatermark.R.string.settings_notice, id: 0x7f0d00b4
[whiteList] find whiteList resource, resource: com.tiktokvideodownloader.freedownloader.nowatermark.R.string.settings_notice_des, id: 0x7f0d00b5
[whiteList] find whiteList resource, resource: com.tiktokvideodownloader.freedownloader.nowatermark.R.string.settings_notice_des1, id: 0x7f0d00b6
[whiteList] find whiteList resource, resource: com.tiktokvideodownloader.freedownloader.nowatermark.R.string.settings_notification, id: 0x7f0d00b7
[whiteList] find whiteList resource, resource: com.tiktokvideodownloader.freedownloader.nowatermark.R.string.settings_path, id: 0x7f0d00b8
[whiteList] find whiteList resource, resource: com.tiktokvideodownloader.freedownloader.nowatermark.R.string.settings_privacy, id: 0x7f0d00b9
[whiteList] find whiteList resource, resource: com.tiktokvideodownloader.freedownloader.nowatermark.R.string.settings_version, id: 0x7f0d00ba
[whiteList] find whiteList resource, resource: com.tiktokvideodownloader.freedownloader.nowatermark.R.string.share_title, id: 0x7f0d00bb
[whiteList] find whiteList resource, resource: com.tiktokvideodownloader.freedownloader.nowatermark.R.string.status_bar_notification_info_overflow, id: 0x7f0d00bc
obfuscate resources done, coast 5341
package bundle done, coast: 1172
Task :app:aabresguardRelease in app Finished

> Task :app:aabresguardRelease FAILED
:app:aabresguardRelease (Thread[Execution worker for ':' Thread 8,5,main]) completed. Took 6.607 secs.
AAPT2 aapt2-4.1.2-6503028-osx Daemon #0: shutdown
AAPT2 aapt2-4.1.2-6503028-osx Daemon #1: shutdown

Execution failed for task ':app:aabresguardRelease'.
> jarsigner failed with exit code 2: 

* Try:
Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output. Run with --scan to get full insights.
trycatchx commented 3 years ago

@JingYeoh 请问有无进展?

trycatchx commented 3 years ago

估计还是与AGP兼容问题。