- Trouble when building APK: invalid resource directory name #21
- Comments
- chichilatte commented Nov 3, 2017
- invalid resource directory name: DoximityX/res navigation #1811
- Comments
- TamilanPeriyasamy commented Jun 1, 2018 •
- Information
- Stacktrace/Logcat
- Steps to Reproduce
- Questions to ask before submission
- MujammilAhamed commented Jun 4, 2018
- liowmark commented Jun 11, 2018
- TamilanPeriyasamy commented Jun 11, 2018
- iBotPeaches commented Jun 11, 2018
- iBotPeaches commented Jun 11, 2018
- iBotPeaches commented Jun 11, 2018
- iBotPeaches commented Jun 11, 2018
- kbragupathy commented Jan 7, 2019
- iBotPeaches commented Jan 7, 2019
- kbragupathy commented Jan 8, 2019
- YuFong commented Feb 22, 2019
- TamilanPeriyasamy commented Feb 26, 2019 •
Trouble when building APK: invalid resource directory name #21
Comments
chichilatte commented Nov 3, 2017
I can build this ANE using ant (changing only the build_config/build.config air.sdk and android.sdk values and adding the res/values.xml ), but running a super simple test build of an apk (using the command line) gives me the error.
An implementation for native extension ‘com.distriqt.extension.customresources.Resources’ required by the application was not found for the target platform
In plain English: it couldn’t find the ANE.
The ANE file is named com.distriqt.extension.customresources.Resources.ane and in my applicationDescriptor.xml I have the line.
com.distriqt.extension.customresources.Resources
I had a look inside the ANE and saw that its id is actually com.distriqt.CustomResources (found in META-INF/ANE/extension.xml). So I change the applicationDescriptor line to.
com.distriqt.CustomResources
And this time the apk build gives me the error.
aapt tool failed:invalid resource directory name: /private/var/folders/kj/00jc9ntj3dj1j2jd5lkrs9vw0000gn/T/81455ed5-b745-47da-b5e4-e32411fcde61/customresources values.xml
Since we’re actually using Distriqt’s Firebase ANE in our project, I made a third attempt, this time changing the build_config/build.config android.package to co.playlingo.wordable.extensions.customresources (as recommended on another issue) but we got the same problems as above.
Here’s my res/values.xml file (redacted).
- OSX 10.11.6
- Android SDK Build-tools 25.0.3
- AIR SDK 23
- ant 1.10.1
- java 1.8.0_121-b13
Any help much appreciated thanks.
The text was updated successfully, but these errors were encountered:
Источник
invalid resource directory name: DoximityX/res navigation #1811
Comments
TamilanPeriyasamy commented Jun 1, 2018 •
Information
- Apktool Version ( apktool -version ) — 2.3.3
- Operating System (Mac, Linux, Windows) — Linux
- APK From? (Playstore, ROM, Other) — Other
Stacktrace/Logcat
Steps to Reproduce
- apktool d DoximityX.apk
- apktool b DoximityX
If this APK can be freely shared, please upload/attach a link to it.
DoximityX.apk.zip
Questions to ask before submission
- Have you tried apktool d , apktool b without changing anything? yes
- If you are trying to install a modified apk, did you resign it? no
- Are you using the latest apktool version? yes
The text was updated successfully, but these errors were encountered:
MujammilAhamed commented Jun 4, 2018
I’m also getting the same issue.
W:Invalid resource directory name: /home/Verizon/res navigation
Is there any workaround for this issue?
liowmark commented Jun 11, 2018
it seems that the aapt you are using does not support custom res dir ——->»navigation»
TamilanPeriyasamy commented Jun 11, 2018
iBotPeaches commented Jun 11, 2018
Thanks for the report. It seems they slipped a new resource into aapt1 , which I messed due to the large commit — aosp-mirror/platform_frameworks_base@e33de76#diff-e7a93bfac1c422acb7946f9512eb2712
I need to update aapt1 binaries.
iBotPeaches commented Jun 11, 2018
Actually on 2nd thought. navigation was only patched to aapt2. aapt1 is no longer a viable option for this application.
Will do some more investigation, this is probably — no fix.
iBotPeaches commented Jun 11, 2018
Duplicate of #1776 after using aapt2 . Closing.
iBotPeaches commented Jun 11, 2018
Yep, please follow #1776 for the fix.
Once I release the binaries for all platforms, this should work on close of the above ticket.
kbragupathy commented Jan 7, 2019
i have tested with latest version (2.3.4), still i am not able to build using (apktool b DoximityX —use-aapt2)
i am getting following error message
apktool b DoximityX_0.1_1967release/ —use-aapt2
I: Using Apktool 2.3.4
I: Checking whether sources has changed.
I: Checking whether resources has changed.
I: Building resources.
W: /Users/apple/DoximityX_0.1_1967release/res/values/ids.xml:3: error: inner element must either be a resource reference or empty.
W: /Users/apple/DoximityX_0.1_1967release/res/values/ids.xml:4: error: inner element must either be a resource reference or empty.
W: /Users/apple/DoximityX_0.1_1967release/res/values/ids.xml:5: error: inner element must either be a resource reference or empty.
W: /Users/apple/DoximityX_0.1_1967release/res/values/ids.xml:6: error: inner element must either be a resource reference or empty.
W: /Users/apple/DoximityX_0.1_1967release/res/values/ids.xml:7: error: inner element must either be a resource reference or empty.
W: /Users/apple/DoximityX_0.1_1967release/res/values/ids.xml:8: error: inner element must either be a resource reference or empty.
W: /Users/apple/DoximityX_0.1_1967release/res/values/ids.xml:9: error: inner element must either be a resource reference or empty.
W: /Users/apple/DoximityX_0.1_1967release/res/values/ids.xml:10: error: inner element must either be a resource reference or empty.
W: /Users/apple/DoximityX_0.1_1967release/res/values/ids.xml:11: error: inner element must either be a resource reference or empty.
W: /Users/apple/DoximityX_0.1_1967release/res/values/ids.xml:12: error: inner element must either be a resource reference or empty.
W: /Users/apple/DoximityX_0.1_1967release/res/values/ids.xml:13: error: inner element must either be a resource reference or empty.
W: /Users/apple/DoximityX_0.1_1967release/res/values/ids.xml:14: error: inner element must either be a resource reference or empty.
W: /Users/apple/DoximityX_0.1_1967release/res/values/ids.xml:15: error: inner element must either be a resource reference or empty.
W: /Users/apple/DoximityX_0.1_1967release/res/values/ids.xml:16: error: inner element must either be a resource reference or empty.
W: /Users/apple/DoximityX_0.1_1967release/res/values/ids.xml:17: error: inner element must either be a resource reference or empty.
W: /Users/apple/DoximityX_0.1_1967release/res/values/ids.xml:18: error: inner element must either be a resource reference or empty.
W: /Users/apple/DoximityX_0.1_1967release/res/values/ids.xml:19: error: inner element must either be a resource reference or empty.
W: /Users/apple/DoximityX_0.1_1967release/res/values/ids.xml:20: error: inner element must either be a resource reference or empty.
W: /Users/apple/DoximityX_0.1_1967release/res/values/ids.xml:21: error: inner element must either be a resource reference or empty.
W: /Users/apple/DoximityX_0.1_1967release/res/values/ids.xml:22: error: inner element must either be a resource reference or empty.
brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [/var/folders/4c/_qr55t_j17903jbn4r_wrkg00000gn/T/brut_util_Jar_887154811190717578.tmp, compile, —dir, /xxxx/xxxx/DoximityX_0.1_1967release/res, —legacy, -o, /xxxx/xxxx/DoximityX_0.1_1967release/build/resources.zip]
iBotPeaches commented Jan 7, 2019
The above error is a new restriction and fixed in the upcoming v2.4.0 release. You can solve this manually by removing all values in the ids.xml file. Basically make them all null by doing
kbragupathy commented Jan 8, 2019
Thanks for your quick response. As you said, I have remove the entries in the ids.xml file.Now i am getting different error.
apktool b DoximityX_0.1_1967release/ —use-aapt2
I: Using Apktool 2.3.4
I: Checking whether sources has changed.
I: Checking whether resources has changed.
I: Building resources.
W: /Users/apple/DoximityX_0.1_1967release/res/values/public.xml:753: error: resource ‘drawable/$avd_hide_password__0’ has invalid entry name ‘$avd_hide_password__0’. Invalid character ‘$avd_hide_password__0’.
W: /Users/apple/DoximityX_0.1_1967release/res/values/public.xml:754: error: resource ‘drawable/$avd_hide_password__1’ has invalid entry name ‘$avd_hide_password__1’. Invalid character ‘$avd_hide_password__1’.
W: /Users/apple/DoximityX_0.1_1967release/res/values/public.xml:755: error: resource ‘drawable/$avd_hide_password__2’ has invalid entry name ‘$avd_hide_password__2’. Invalid character ‘$avd_hide_password__2’.
W: /Users/apple/DoximityX_0.1_1967release/res/values/public.xml:756: error: resource ‘drawable/$avd_show_password__0’ has invalid entry name ‘$avd_show_password__0’. Invalid character ‘$avd_show_password__0’.
W: /Users/apple/DoximityX_0.1_1967release/res/values/public.xml:757: error: resource ‘drawable/$avd_show_password__1’ has invalid entry name ‘$avd_show_password__1’. Invalid character ‘$avd_show_password__1’.
W: /Users/apple/DoximityX_0.1_1967release/res/values/public.xml:758: error: resource ‘drawable/$avd_show_password__2’ has invalid entry name ‘$avd_show_password__2’. Invalid character ‘$avd_show_password__2’.
W: /Users/apple/DoximityX_0.1_1967release/res/values/public.xml:830: error: resource ‘drawable/$ic_launcher_foreground__0’ has invalid entry name ‘$ic_launcher_foreground__0’. Invalid character ‘$ic_launcher_foreground__0’.
W: error: resource android:style/Animation.OptionsPanel is private.
W: error: resource android:style/Animation.LockScreen is private.
W: error: failed linking references.
brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [/var/folders/4c/_qr55t_j17903jbn4r_wrkg00000gn/T/brut_util_Jar_6386311020092206153.tmp, link, -o, /var/folders/4c/_qr55t_j17903jbn4r_wrkg00000gn/T/APKTOOL1773513356307571365.tmp, —package-id, 127, —min-sdk-version, 21, —target-sdk-version, 27, —version-code, 1967, —version-name, 0.1, —no-auto-version, —no-version-vectors, —no-version-transitions, —no-resource-deduping, -0, arsc, -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/common_google_signin_btn_icon_dark_normal_background.9.png, -0, res/drawable-hdpi-v4/common_google_signin_btn_icon_light_normal_background.9.png, -0, res/drawable-hdpi-v4/common_google_signin_btn_text_dark_normal_background.9.png, -0, res/drawable-hdpi-v4/common_google_signin_btn_text_light_normal_background.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-ldrtl-hdpi-v17/abc_spinner_mtrl_am_alpha.9.png, -0, res/drawable-ldrtl-mdpi-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-mdpi-v4/abc_ab_share_pack_mtrl_alpha.9.png, -0, res/drawable-mdpi-v4/abc_btn_switch_to_on_mtrl_00001.9.png, -0, res/drawable-mdpi-v4/abc_btn_switch_to_on_mtrl_00012.9.png, -0, res/drawable-mdpi-v4/abc_cab_background_top_mtrl_alpha.9.png, -0, res/drawable-mdpi-v4/abc_list_divider_mtrl_alpha.9.png, -0, res/drawable-mdpi-v4/abc_list_focused_holo.9.png, -0, res/drawable-mdpi-v4/abc_list_longpressed_holo.9.png, -0, res/drawable-mdpi-v4/abc_list_pressed_holo_dark.9.png, -0, res/drawable-mdpi-v4/abc_list_pressed_holo_light.9.png, -0, res/drawable-mdpi-v4/abc_list_selector_disabled_holo_dark.9.png, -0, res/drawable-mdpi-v4/abc_list_selector_disabled_holo_light.9.png, -0, res/drawable-mdpi-v4/abc_menu_hardkey_panel_mtrl_mult.9.png, -0, res/drawable-mdpi-v4/abc_popup_background_mtrl_mult.9.png, -0, res/drawable-mdpi-v4/abc_scrubber_primary_mtrl_alpha.9.png, -0, res/drawable-mdpi-v4/abc_scrubber_track_mtrl_alpha.9.png, -0, res/drawable-mdpi-v4/abc_spinner_mtrl_am_alpha.9.png, -0, res/drawable-mdpi-v4/abc_switch_track_mtrl_alpha.9.png, -0, res/drawable-mdpi-v4/abc_tab_indicator_mtrl_alpha.9.png, -0, res/drawable-mdpi-v4/abc_textfield_activated_mtrl_alpha.9.png, -0, res/drawable-mdpi-v4/abc_textfield_default_mtrl_alpha.9.png, -0, res/drawable-mdpi-v4/abc_textfield_search_activated_mtrl_alpha.9.png, -0, res/drawable-mdpi-v4/abc_textfield_search_default_mtrl_alpha.9.png, -0, res/drawable-mdpi-v4/common_google_signin_btn_icon_dark_normal_background.9.png, -0, res/drawable-mdpi-v4/common_google_signin_btn_icon_light_normal_background.9.png, -0, res/drawable-mdpi-v4/common_google_signin_btn_text_dark_normal_background.9.png, -0, res/drawable-mdpi-v4/common_google_signin_btn_text_light_normal_background.9.png, -0, res/drawable-mdpi-v4/notification_bg_low_normal.9.png, -0, res/drawable-mdpi-v4/notification_bg_low_pressed.9.png, -0, res/drawable-mdpi-v4/notification_bg_normal.9.png, -0, res/drawable-mdpi-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/common_google_signin_btn_icon_dark_normal_background.9.png, -0, res/drawable-xhdpi-v4/common_google_signin_btn_icon_light_normal_background.9.png, -0, res/drawable-xhdpi-v4/common_google_signin_btn_text_dark_normal_background.9.png, -0, res/drawable-xhdpi-v4/common_google_signin_btn_text_light_normal_background.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-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-xxhdpi-v4/common_google_signin_btn_icon_dark_normal_background.9.png, -0, res/drawable-xxhdpi-v4/common_google_signin_btn_icon_light_normal_background.9.png, -0, res/drawable-xxhdpi-v4/common_google_signin_btn_text_dark_normal_background.9.png, -0, res/drawable-xxhdpi-v4/common_google_signin_btn_text_light_normal_background.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, arsc, -I, /Users/apple/Library/apktool/framework/1.apk, —manifest, /Users/apple/DoximityX_0.1_1967release/AndroidManifest.xml, /Users/apple/DoximityX_0.1_1967release/build/resources.zip]
YuFong commented Feb 22, 2019
上述错误是一个新的限制,并在即将发布的v2.4.0版本中修复。您可以通过删除 ids.xml 文件中的所有值来手动解决此问题。通过这样做基本上使它们全部为空
Excuse me, I have another error by doing this step.
Could you please help me solve this problem?Thx.
TamilanPeriyasamy commented Feb 26, 2019 •
Thanks for your quick response. As you said, I have remove the entries in the ids.xml file.Now i am getting different error.
apktool b DoximityX_0.1_1967release/ —use-aapt2
I: Using Apktool 2.3.4
I: Checking whether sources has changed.
I: Checking whether resources has changed.
I: Building resources.
W: /Users/apple/DoximityX_0.1_1967release/res/values/public.xml:753: error: resource ‘drawable/$avd_hide_password__0’ has invalid entry name ‘$avd_hide_password__0’. Invalid character ‘$avd_hide_password__0’.
W: /Users/apple/DoximityX_0.1_1967release/res/values/public.xml:754: error: resource ‘drawable/$avd_hide_password__1’ has invalid entry name ‘$avd_hide_password__1’. Invalid character ‘$avd_hide_password__1’.
W: /Users/apple/DoximityX_0.1_1967release/res/values/public.xml:755: error: resource ‘drawable/$avd_hide_password__2’ has invalid entry name ‘$avd_hide_password__2’. Invalid character ‘$avd_hide_password__2’.
W: /Users/apple/DoximityX_0.1_1967release/res/values/public.xml:756: error: resource ‘drawable/$avd_show_password__0’ has invalid entry name ‘$avd_show_password__0’. Invalid character ‘$avd_show_password__0’.
W: /Users/apple/DoximityX_0.1_1967release/res/values/public.xml:757: error: resource ‘drawable/$avd_show_password__1’ has invalid entry name ‘$avd_show_password__1’. Invalid character ‘$avd_show_password__1’.
W: /Users/apple/DoximityX_0.1_1967release/res/values/public.xml:758: error: resource ‘drawable/$avd_show_password__2’ has invalid entry name ‘$avd_show_password__2’. Invalid character ‘$avd_show_password__2’.
W: /Users/apple/DoximityX_0.1_1967release/res/values/public.xml:830: error: resource ‘drawable/$ic_launcher_foreground__0’ has invalid entry name ‘$ic_launcher_foreground__0’. Invalid character ‘$ic_launcher_foreground__0’.
W: error: resource android:style/Animation.OptionsPanel is private.
W: error: resource android:style/Animation.LockScreen is private.
W: error: failed linking references.
brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [/var/folders/4c/_qr55t_j17903jbn4r_wrkg00000gn/T/brut_util_Jar_6386311020092206153.tmp, link, -o, /var/folders/4c/_qr55t_j17903jbn4r_wrkg00000gn/T/APKTOOL1773513356307571365.tmp, —package-id, 127, —min-sdk-version, 21, —target-sdk-version, 27, —version-code, 1967, —version-name, 0.1, —no-auto-version, —no-version-vectors, —no-version-transitions, —no-resource-deduping, -0, arsc, -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/common_google_signin_btn_icon_dark_normal_background.9.png, -0, res/drawable-hdpi-v4/common_google_signin_btn_icon_light_normal_background.9.png, -0, res/drawable-hdpi-v4/common_google_signin_btn_text_dark_normal_background.9.png, -0, res/drawable-hdpi-v4/common_google_signin_btn_text_light_normal_background.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-ldrtl-hdpi-v17/abc_spinner_mtrl_am_alpha.9.png, -0, res/drawable-ldrtl-mdpi-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-mdpi-v4/abc_ab_share_pack_mtrl_alpha.9.png, -0, res/drawable-mdpi-v4/abc_btn_switch_to_on_mtrl_00001.9.png, -0, res/drawable-mdpi-v4/abc_btn_switch_to_on_mtrl_00012.9.png, -0, res/drawable-mdpi-v4/abc_cab_background_top_mtrl_alpha.9.png, -0, res/drawable-mdpi-v4/abc_list_divider_mtrl_alpha.9.png, -0, res/drawable-mdpi-v4/abc_list_focused_holo.9.png, -0, res/drawable-mdpi-v4/abc_list_longpressed_holo.9.png, -0, res/drawable-mdpi-v4/abc_list_pressed_holo_dark.9.png, -0, res/drawable-mdpi-v4/abc_list_pressed_holo_light.9.png, -0, res/drawable-mdpi-v4/abc_list_selector_disabled_holo_dark.9.png, -0, res/drawable-mdpi-v4/abc_list_selector_disabled_holo_light.9.png, -0, res/drawable-mdpi-v4/abc_menu_hardkey_panel_mtrl_mult.9.png, -0, res/drawable-mdpi-v4/abc_popup_background_mtrl_mult.9.png, -0, res/drawable-mdpi-v4/abc_scrubber_primary_mtrl_alpha.9.png, -0, res/drawable-mdpi-v4/abc_scrubber_track_mtrl_alpha.9.png, -0, res/drawable-mdpi-v4/abc_spinner_mtrl_am_alpha.9.png, -0, res/drawable-mdpi-v4/abc_switch_track_mtrl_alpha.9.png, -0, res/drawable-mdpi-v4/abc_tab_indicator_mtrl_alpha.9.png, -0, res/drawable-mdpi-v4/abc_textfield_activated_mtrl_alpha.9.png, -0, res/drawable-mdpi-v4/abc_textfield_default_mtrl_alpha.9.png, -0, res/drawable-mdpi-v4/abc_textfield_search_activated_mtrl_alpha.9.png, -0, res/drawable-mdpi-v4/abc_textfield_search_default_mtrl_alpha.9.png, -0, res/drawable-mdpi-v4/common_google_signin_btn_icon_dark_normal_background.9.png, -0, res/drawable-mdpi-v4/common_google_signin_btn_icon_light_normal_background.9.png, -0, res/drawable-mdpi-v4/common_google_signin_btn_text_dark_normal_background.9.png, -0, res/drawable-mdpi-v4/common_google_signin_btn_text_light_normal_background.9.png, -0, res/drawable-mdpi-v4/notification_bg_low_normal.9.png, -0, res/drawable-mdpi-v4/notification_bg_low_pressed.9.png, -0, res/drawable-mdpi-v4/notification_bg_normal.9.png, -0, res/drawable-mdpi-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/common_google_signin_btn_icon_dark_normal_background.9.png, -0, res/drawable-xhdpi-v4/common_google_signin_btn_icon_light_normal_background.9.png, -0, res/drawable-xhdpi-v4/common_google_signin_btn_text_dark_normal_background.9.png, -0, res/drawable-xhdpi-v4/common_google_signin_btn_text_light_normal_background.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-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-xxhdpi-v4/common_google_signin_btn_icon_dark_normal_background.9.png, -0, res/drawable-xxhdpi-v4/common_google_signin_btn_icon_light_normal_background.9.png, -0, res/drawable-xxhdpi-v4/common_google_signin_btn_text_dark_normal_background.9.png, -0, res/drawable-xxhdpi-v4/common_google_signin_btn_text_light_normal_background.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, arsc, -I, /Users/apple/Library/apktool/framework/1.apk, —manifest, /Users/apple/DoximityX_0.1_1967release/AndroidManifest.xml, /Users/apple/DoximityX_0.1_1967release/build/resources.zip]
This is a name space issue which is due to ‘$’ symbol found in resource files,
So if you could remove this ‘$’ symbol and then rebuild this will fix your issue.
(Ex: $avd_hide_password__0 to avd_hide_password__0 )
Источник