question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Webview - "no resource found" for attrs

See original GitHub issue

Information

  1. Apktool Version (apktool -version) - the latest v2.3.4
  2. Operating System (Mac, Linux, Windows) - Windows
  3. APK From? (Playstore, ROM, Other) - Playstore

Stacktrace/Logcat

D:\anti-compile>D:\anti-compile\apktool.bat b webview_57.0.2987.108
I: Using Apktool 2.3.4
I: Copying webview_57.0.2987.108 classes.dex file...
I: Checking whether resources has changed...
I: Building resources...
W: D:\anti-compile\webview_57.0.2987.108\res\values\public.xml:66: error: Publicsymbol attr/actionBarSize declared here is not defined.
W: D:\anti-compile\webview_57.0.2987.108\res\values\public.xml:227: error: Public symbol attr/backgroundTintMode declared here is not defined.
W: D:\anti-compile\webview_57.0.2987.108\res\values\public.xml:215: error: Public symbol attr/buttonGravity declared here is not defined.
W: D:\anti-compile\webview_57.0.2987.108\res\values\public.xml:237: error: Public symbol attr/buttonSize declared here is not defined.
W: D:\anti-compile\webview_57.0.2987.108\res\values\public.xml:162: error: Public symbol attr/buttonTintMode declared here is not defined.
W: D:\anti-compile\webview_57.0.2987.108\res\values\public.xml:238: error: Public symbol attr/colorScheme declared here is not defined.
W: D:\anti-compile\webview_57.0.2987.108\res\values\public.xml:8: error: Public symbol attr/displayOptions declared here is not defined.
W: D:\anti-compile\webview_57.0.2987.108\res\values\public.xml:234: error: Public symbol attr/imageAspectRatioAdjust declared here is not defined.
W: D:\anti-compile\webview_57.0.2987.108\res\values\public.xml:7: error: Public symbol attr/navigationMode declared here is not defined.
W: D:\anti-compile\webview_57.0.2987.108\res\values\public.xml:174: error: Public symbol attr/showAsAction declared here is not defined.
W: D:\anti-compile\webview_57.0.2987.108\res\values\public.xml:172: error: Public symbol attr/showDividers declared here is not defined.
W: D:\anti-compile\webview_57.0.2987.108\res\values\public.xml:196: error: Public symbol attr/thumbTintMode declared here is not defined.
W: D:\anti-compile\webview_57.0.2987.108\res\values\public.xml:44: error: Public symbol attr/tickMarkTintMode declared here is not defined.
W: D:\anti-compile\webview_57.0.2987.108\res\values\public.xml:199: error: Public symbol attr/trackTintMode declared here is not defined.
W: D:\anti-compile\webview_57.0.2987.108\res\values-v21\styles.xml:150: error: Error: No resource found that matches the given name: attr '@attr/actionBarSize'.
W:
W: D:\anti-compile\webview_57.0.2987.108\res\values-v21\styles.xml:188: error: Error: No resource found that matches the given name: attr '@attr/actionBarSize'.
W:
W: D:\anti-compile\webview_57.0.2987.108\res\values\styles.xml:656: error: Error: No resource found that matches the given name: attr '@attr/actionBarSize'.
W:
W: D:\anti-compile\webview_57.0.2987.108\res\values\styles.xml:788: error: Error: No resource found that matches the given name: attr '@attr/actionBarSize'.
W:
W: D:\anti-compile\webview_57.0.2987.108\res\values\styles.xml:931: error: Error: No resource found that matches the given name: attr '@attr/displayOptions'.
W:
W: D:\anti-compile\webview_57.0.2987.108\res\values\styles.xml:954: error: Error: No resource found that matches the given name: attr '@attr/showDividers'.
W:
W: D:\anti-compile\webview_57.0.2987.108\res\values\styles.xml:967: error: Error: No resource found that matches the given name: attr '@attr/showDividers'.
W:
W: D:\anti-compile\webview_57.0.2987.108\res\values\styles.xml:1037: error: Error: No resource found that matches the given name: attr '@attr/buttonGravity'.

W:brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\LUXIAO~1\AppData\Local\Temp\brut_util_Jar_7161397324008131143.tmp, p, --shared-lib, --min-sdk-version, 21, --target-sdk-version, 25, --version-code, 298710800, --version-name, 57.0.2987.108, --no-version-vectors, -F, C:\Users\LUXIAO~1\AppData\Local\Temp\APKTOOL2199737713723512238.tmp, -x, -0, arsc, -0, pak, -0, dat, -0, bin, -0, res/drawable-hdpi-v4/abc_ab_share_pack_mtrl_alpha.9.png, -0, png, -0, res/drawable-hdpi-v4/abc_btn_switch_to_on_mtrl_00001.9.png, -0, res/drawable-hdpi-v4/abc_btn_switch_to_on_mtrl_00012.9.png, -0, res/drawable-hdpi-v4/abc_cab_background_top_mtrl_alpha.9.png, -0, res/drawable-hdpi-v4/abc_list_divider_mtrl_alpha.9.png, -0, res/drawable-hdpi-v4/abc_list_focused_holo.9.png, -0, res/drawable-hdpi-v4/abc_list_longpressed_holo.9.png, -0, res/drawable-hdpi-v4/abc_list_pressed_holo_dark.9.png, -0, res/drawable-hdpi-v4/abc_list_pressed_holo_light.9.png, -0, res/drawable-hdpi-v4/abc_list_selector_disabled_holo_dark.9.png, -0, res/drawable-hdpi-v4/abc_list_selector_disabled_holo_light.9.png, -0, res/drawable-hdpi-v4/abc_menu_hardkey_panel_mtrl_mult.9.png, -0, res/drawable-hdpi-v4/abc_popup_background_mtrl_mult.9.png, -0, res/drawable-hdpi-v4/abc_scrubber_primary_mtrl_alpha.9.png, -0, res/drawable-hdpi-v4/abc_scrubber_track_mtrl_alpha.9.png, -0, res/drawable-hdpi-v4/abc_spinner_mtrl_am_alpha.9.png, -0, res/drawable-hdpi-v4/abc_switch_track_mtrl_alpha.9.png, -0, res/drawable-hdpi-v4/abc_tab_indicator_mtrl_alpha.9.png, -0, res/drawable-hdpi-v4/abc_textfield_activated_mtrl_alpha.9.png, -0, res/drawable-hdpi-v4/abc_textfield_default_mtrl_alpha.9.png, -0, res/drawable-hdpi-v4/abc_textfield_search_activated_mtrl_alpha.9.png, -0, res/drawable-hdpi-v4/abc_textfield_search_default_mtrl_alpha.9.png, -0, res/drawable-hdpi-v4/bubble.9.png, -0, res/drawable-hdpi-v4/dropdown_popup_background_down.9.png, -0, res/drawable-hdpi-v4/dropdown_popup_background_up.9.png, -0, res/drawable-hdpi-v4/notification_bg_low_normal.9.png, -0, res/drawable-hdpi-v4/notification_bg_low_pressed.9.png, -0, res/drawable-hdpi-v4/notification_bg_normal.9.png, -0, res/drawable-hdpi-v4/notification_bg_normal_pressed.9.png, -0, res/drawable-hdpi-v4/ondemand_overlay.9.png, -0, res/drawable-ldrtl-hdpi-v17/abc_spinner_mtrl_am_alpha.9.png, -0, res/drawable-ldrtl-v17/abc_spinner_mtrl_am_alpha.9.png, -0, res/drawable-ldrtl-xhdpi-v17/abc_spinner_mtrl_am_alpha.9.png, -0, res/drawable-ldrtl-xxhdpi-v17/abc_spinner_mtrl_am_alpha.9.png, -0, res/drawable-ldrtl-xxxhdpi-v17/abc_spinner_mtrl_am_alpha.9.png, -0, res/drawable-v4/abc_ab_share_pack_mtrl_alpha.9.png, -0, res/drawable-v4/abc_btn_switch_to_on_mtrl_00001.9.png, -0, res/drawable-v4/abc_btn_switch_to_on_mtrl_00012.9.png, -0, res/drawable-v4/abc_cab_background_top_mtrl_alpha.9.png, -0, res/drawable-v4/abc_list_divider_mtrl_alpha.9.png, -0, res/drawable-v4/abc_list_focused_holo.9.png, -0, res/drawable-v4/abc_list_longpressed_holo.9.png, -0, res/drawable-v4/abc_list_pressed_holo_dark.9.png, -0, res/drawable-v4/abc_list_pressed_holo_light.9.png, -0, res/drawable-v4/abc_list_selector_disabled_holo_dark.9.png, -0, res/drawable-v4/abc_list_selector_disabled_holo_light.9.png, -0, res/drawable-v4/abc_menu_hardkey_panel_mtrl_mult.9.png, -0, res/drawable-v4/abc_popup_background_mtrl_mult.9.png, -0, res/drawable-v4/abc_scrubber_primary_mtrl_alpha.9.png, -0, res/drawable-v4/abc_scrubber_track_mtrl_alpha.9.png, -0, res/drawable-v4/abc_spinner_mtrl_am_alpha.9.png, -0, res/drawable-v4/abc_switch_track_mtrl_alpha.9.png, -0, res/drawable-v4/abc_tab_indicator_mtrl_alpha.9.png, -0, res/drawable-v4/abc_textfield_activated_mtrl_alpha.9.png, -0, res/drawable-v4/abc_textfield_default_mtrl_alpha.9.png, -0, res/drawable-v4/abc_textfield_search_activated_mtrl_alpha.9.png, -0, res/drawable-v4/abc_textfield_search_default_mtrl_alpha.9.png, -0, res/drawable-v4/notification_bg_low_normal.9.png, -0, res/drawable-v4/notification_bg_low_pressed.9.png, -0, res/drawable-v4/notification_bg_normal.9.png, -0, res/drawable-v4/notification_bg_normal_pressed.9.png, -0, res/drawable-xhdpi-v4/abc_ab_share_pack_mtrl_alpha.9.png, -0, res/drawable-xhdpi-v4/abc_btn_switch_to_on_mtrl_00001.9.png, -0, res/drawable-xhdpi-v4/abc_btn_switch_to_on_mtrl_00012.9.png, -0, res/drawable-xhdpi-v4/abc_cab_background_top_mtrl_alpha.9.png, -0, res/drawable-xhdpi-v4/abc_list_divider_mtrl_alpha.9.png, -0, res/drawable-xhdpi-v4/abc_list_focused_holo.9.png, -0, res/drawable-xhdpi-v4/abc_list_longpressed_holo.9.png, -0, res/drawable-xhdpi-v4/abc_list_pressed_holo_dark.9.png, -0, res/drawable-xhdpi-v4/abc_list_pressed_holo_light.9.png, -0, res/drawable-xhdpi-v4/abc_list_selector_disabled_holo_dark.9.png, -0, res/drawable-xhdpi-v4/abc_list_selector_disabled_holo_light.9.png, -0, res/drawable-xhdpi-v4/abc_menu_hardkey_panel_mtrl_mult.9.png, -0, res/drawable-xhdpi-v4/abc_popup_background_mtrl_mult.9.png, -0, res/drawable-xhdpi-v4/abc_scrubber_primary_mtrl_alpha.9.png, -0, res/drawable-xhdpi-v4/abc_scrubber_track_mtrl_alpha.9.png, -0, res/drawable-xhdpi-v4/abc_spinner_mtrl_am_alpha.9.png, -0, res/drawable-xhdpi-v4/abc_switch_track_mtrl_alpha.9.png, -0, res/drawable-xhdpi-v4/abc_tab_indicator_mtrl_alpha.9.png, -0, res/drawable-xhdpi-v4/abc_textfield_activated_mtrl_alpha.9.png, -0, res/drawable-xhdpi-v4/abc_textfield_default_mtrl_alpha.9.png, -0, res/drawable-xhdpi-v4/abc_textfield_search_activated_mtrl_alpha.9.png, -0, res/drawable-xhdpi-v4/abc_textfield_search_default_mtrl_alpha.9.png, -0, res/drawable-xhdpi-v4/bubble.9.png, -0, res/drawable-xhdpi-v4/dropdown_popup_background_down.9.png, -0, res/drawable-xhdpi-v4/dropdown_popup_background_up.9.png, -0, res/drawable-xhdpi-v4/notification_bg_low_normal.9.png, -0,res/drawable-xhdpi-v4/notification_bg_low_pressed.9.png, -0, res/drawable-xhdpi-v4/notification_bg_normal.9.png, -0, res/drawable-xhdpi-v4/notification_bg_normal_pressed.9.png, -0, res/drawable-xhdpi-v4/ondemand_overlay.9.png, -0, res/drawable-xxhdpi-v4/abc_ab_share_pack_mtrl_alpha.9.png, -0, res/drawable-xxhdpi-v4/abc_btn_switch_to_on_mtrl_00001.9.png, -0, res/drawable-xxhdpi-v4/abc_btn_switch_to_on_mtrl_00012.9.png, -0, res/drawable-xxhdpi-v4/abc_cab_background_top_mtrl_alpha.9.png, -0, res/drawable-xxhdpi-v4/abc_list_divider_mtrl_alpha.9.png, -0, res/drawable-xxhdpi-v4/abc_list_focused_holo.9.png, -0, res/drawable-xxhdpi-v4/abc_list_longpressed_holo.9.png, -0, res/drawable-xxhdpi-v4/abc_list_pressed_holo_dark.9.png, -0, res/drawable-xxhdpi-v4/abc_list_pressed_holo_light.9.png, -0, res/drawable-xxhdpi-v4/abc_list_selector_disabled_holo_dark.9.png, -0, res/drawable-xxhdpi-v4/abc_list_selector_disabled_holo_light.9.png, -0, res/drawable-xxhdpi-v4/abc_menu_hardkey_panel_mtrl_mult.9.png, -0, res/drawable-xxhdpi-v4/abc_popup_background_mtrl_mult.9.png, -0, res/drawable-xxhdpi-v4/abc_scrubber_primary_mtrl_alpha.9.png, -0, res/drawable-xxhdpi-v4/abc_scrubber_track_mtrl_alpha.9.png, -0,res/drawable-xxhdpi-v4/abc_spinner_mtrl_am_alpha.9.png, -0, res/drawable-xxhdpi-v4/abc_switch_track_mtrl_alpha.9.png, -0, res/drawable-xxhdpi-v4/abc_tab_indicator_mtrl_alpha.9.png, -0, res/drawable-xxhdpi-v4/abc_textfield_activated_mtrl_alpha.9.png, -0, res/drawable-xxhdpi-v4/abc_textfield_default_mtrl_alpha.9.png, -0, res/drawable-xxhdpi-v4/abc_textfield_search_activated_mtrl_alpha.9.png, -0, res/drawable-xxhdpi-v4/abc_textfield_search_default_mtrl_alpha.9.png, -0, res/drawable-xxxhdpi-v4/abc_btn_switch_to_on_mtrl_00001.9.png, -0, res/drawable-xxxhdpi-v4/abc_btn_switch_to_on_mtrl_00012.9.png, -0, res/drawable-xxxhdpi-v4/abc_spinner_mtrl_am_alpha.9.png, -0, res/drawable-xxxhdpi-v4/abc_switch_track_mtrl_alpha.9.png, -0, res/drawable-xxxhdpi-v4/abc_tab_indicator_mtrl_alpha.9.png, -0, res/drawable/bubble.9.png, -0, res/drawable/dropdown_popup_background_down.9.png, -0, res/drawable/dropdown_popup_background_up.9.png, -0, res/drawable/ondemand_overlay.9.png, -0, wav, -0, arsc, -I, C:\Users\luxiaofeng\AppData\Local\apktool\framework\1.apk, -S, D:\anti-compile\webview_57.0.2987.108\res, -M, D:\anti-compile\webview_57.0.2987.108\AndroidManifest.xml]


Steps to Reproduce

  1. apktool d webview.apk
  2. apktool b webview

Frameworks

If this APK is from an OEM ROM (Samsung, HTC, LG). Please attach framework files (.apks that live in /system/framework or /system/priv-app)

Nope, no OEM ROM apk

APK

If this APK can be freely shared, please upload/attach a link to it. https://www.apkmirror.com/uploads/page/4/?q=android-system-webview

I have tried and it seems the version before [Android System WebView 56.0.2924.87] is OK(can be built successfully), and the version after [Android System WebView 57.0.2987.108] is NG(above error)

Questions to ask before submission

  1. Have you tried apktool d, apktool b without changing anything? - Yes. This is how to reproduce
  2. If you are trying to install a modified apk, did you resign it? - doesn’t build so cant resign
  3. Are you using the latest apktool version?yes

Others:

  1. I have seen the related issue #1840 #1376 #1780 #1817, but can not fix the problem using [apktool empty-framework-dir --force]
  2. this apk is andorid system webview which is an android system component https://play.google.com/store/apps/details?id=com.google.android.webview

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
0pLuS0commented, Dec 28, 2018

@iBotPeaches I hope this will be fixed soon, I needed to change an apk and get the same problem…

Keep up the great work and thanks!

0reactions
lxfsolecommented, Jan 11, 2019

@0pLuS0

webview.apk can be downloaded from google play. https://play.google.com/store/apps/details?id=com.google.android.webview&hl=en

And I downloaded old version from below websites. https://www.apkmirror.com/uploads/page/4/?q=android-system-webview

And I think any framework could be used.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Android Studio: Error: No resource found that matches the ...
Android Studio: Error: No resource found that matches the given name (at 'layout_above' with value '@id/adView') ; LinearLayout xmlns:android ...
Read more >
WebView | Android Developers
Manifest · Manifest.permission · Manifest.permission_group · R · R.anim · R.animator · R.array · R.attr · R.bool · R.color · R.dimen · R.drawable ......
Read more >
Android.Support.v7.AppCompat - No resource found that matches ...
Learn basic troubleshooting tips for issues concerning Android.Support.v7.AppCompat - No resource found that matches the given name.
Read more >
HTML attribute: crossorigin - MDN Web Docs
These attributes are enumerated, and have the following possible ... full access to the resource and in the case of a cross-origin request, ......
Read more >
core/java/android/webkit/WebView.java - Google Git
@return the credentials as a String array, if found. The first element. * is the username and the second element is the password....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found