Android no resource identifier found

Содержание
  1. apktool not working with latest build tools : AndroidManifest.xml:1: error: No resource identifier found for attribute ‘compileSdkVersion’ in package ‘android’ #1842
  2. Comments
  3. diksha3 commented Jul 18, 2018 •
  4. Information
  5. Stacktrace/Logcat
  6. Steps to Reproduce
  7. Frameworks
  8. Questions to ask before submission
  9. iBotPeaches commented Jul 18, 2018
  10. baloo30310 commented Jul 22, 2018
  11. skdck commented Jul 22, 2018
  12. TomasKypta commented Jul 22, 2018 •
  13. iBotPeaches commented Jul 23, 2018
  14. iBotPeaches commented Jul 23, 2018
  15. dotjaz commented Jul 24, 2018
  16. gidano commented Feb 10, 2019
  17. Hi, Nowadays, I do the same with every application, I don’t know the cause. Unfortunately, I can’t do translator work. I also tried the «apktool empty-framework-dir —force» command, I didn’t get a solution. Decompiling: `————————————————— Batch ApkTool : 3.7.2 APKTOOL : apktool_2.3.4.jar Build in EXPERT mode : YES Sign output APKs : YES
  18. Compiling: `————————————————— Batch ApkTool : 3.7.2 APKTOOL : apktool_2.3.4.jar Build in EXPERT mode : YES Sign output APKs : YES
  19. AndroidManifest.xml:17: error: No resource identifier found for attribute ‘isSplitRequired’ in package ‘android’ #2139
  20. Comments
  21. ifengchao commented Jul 23, 2019
  22. Information
  23. Stacktrace/Logcat
  24. Steps to Reproduce
  25. Frameworks
  26. Questions to ask before submission
  27. iBotPeaches commented Jul 30, 2019
  28. ifengchao commented Jul 31, 2019
  29. denysvitali commented Sep 1, 2019
  30. gameFace22 commented Sep 27, 2019
  31. denysvitali commented Sep 30, 2019
  32. mbouzian42 commented Sep 30, 2019
  33. aghontpi commented Oct 3, 2019 •
  34. zlrab commented Oct 8, 2019 •
  35. AGSPhoenix commented Nov 3, 2019
  36. Decikingship commented Dec 2, 2019

apktool not working with latest build tools : AndroidManifest.xml:1: error: No resource identifier found for attribute ‘compileSdkVersion’ in package ‘android’ #1842

Comments

diksha3 commented Jul 18, 2018 •

Information

  1. Apktool Version ( apktool -version ) — 2.3.3
  2. Operating System (Mac, Linux, Windows) — Mac
  3. APK From? (Playstore, ROM, Other) — Other

Stacktrace/Logcat

Steps to Reproduce

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 )

If this APK can be freely shared, please upload/attach a link to it.

Questions to ask before submission

  1. Have you tried apktool d , apktool b without changing anything? Yes
  2. If you are trying to install a modified apk, did you resign it? Yes
  3. Are you using the latest apktool version? Yes

The text was updated successfully, but these errors were encountered:

iBotPeaches commented Jul 18, 2018

Do you have an application? I don’t recognize these resource(s) so must be from a new upcoming build.

baloo30310 commented Jul 22, 2018

Hello and thank you for your job.
I have a problem since the last update of apktools under Oréo with SAMSUNG NOTE 8.

I thought I saw that other people also he does not want to decompile the apk anymore.

Читайте также:  Samsung gt i8262 прошивка android

skdck commented Jul 22, 2018

TomasKypta commented Jul 22, 2018 •

I’m seeing the same problem.
It happens on a new project created in Android Studio 3.2 Canary 17.
The project contains only code generated by Android Studio, nothing else.

In my case I see one extra warning for appComponentFactory (added in API level 28):

Important aspects of the project: compileSdkVersion is 28
and the project has ‘androidx.appcompat:appcompat:1.0.0-alpha1’ dependency (this one adds appComponentFactory to the manifest).

iBotPeaches commented Jul 23, 2018

Thanks for the information @TomasKypta , I will grab a demo build off Studio 3.2.

My IDE only wants to upgrade to 3.2beta4 or 3.3canary3 so I’ll do the 3.2 beta

iBotPeaches commented Jul 23, 2018

Just built a new application with API28 in 3.2beta4 Android Studio. Decoded and Rebuilt no error.

If you continue to have issues try the above command.

dotjaz commented Jul 24, 2018

Examples like latest MacroDroid would fail to re-compile. Both attributes have to be manually removed.

gidano commented Feb 10, 2019

Hi,
Nowadays, I do the same with every application, I don’t know the cause. Unfortunately, I can’t do translator work. I also tried the «apktool empty-framework-dir —force» command, I didn’t get a solution.
Decompiling:
`—————————————————
Batch ApkTool : 3.7.2
APKTOOL : apktool_2.3.4.jar
Build in EXPERT mode : YES
Sign output APKs : YES

[*] Decompiling PaceCalendarWidget.1.9.3.apk
I: Using Apktool 2.3.4 on PaceCalendarWidget.1.9.3.apk
I: Loading resource table.
I: Decoding AndroidManifest.xml with resources.
I: Loading resource table from file: bin\framework\1.apk
I: Regular manifest package.
I: Decoding file-resources.
I: Decoding values / XMLs.
I: Baksmaling classes.dex.
I: Baksmaling classes2.dex.
I: Copying assets and libs.
I: Copying unknown files.
I: Copying original files.

DONE
Elapsed time: 1 min. 10 sec. `

Compiling:
`—————————————————
Batch ApkTool : 3.7.2
APKTOOL : apktool_2.3.4.jar
Build in EXPERT mode : YES
Sign output APKs : YES

[] Recompiling PaceCalendarWidget.1.9.3
I: Using Apktool 2.3.4
I: Checking whether sources has changed.
I: Smaling smali folder into classes.dex.
I: Checking whether sources has changed.
I: Smaling smali_classes2 folder into classes2.dex.
I: Checking whether resources has changed.
I: Building resources.
W: fakeLogOpen(/dev/log_system) failed
W: fakeLogOpen(/dev/log_system) failed
W: fakeLogOpen(/dev/log_crash) failed
W: fakeLogOpen(/dev/log_crash) failed
W: fakeLogOpen(/dev/log_stats) failed
W: fakeLogOpen(/dev/log_stats) failed
W: fakeLogOpen(/dev/log_crash) failed
W: fakeLogOpen(/dev/log_stats) failed
W: fakeLogOpen(/dev/log_crash) failed
W: fakeLogOpen(/dev/log_stats) failed
W: C:\BatchApkTool_INPUT_APK\PaceCalendarWidget.1.9.3\res\values\public.xml:15: error: Public symbol array/spring_depend declared here is not defined.
brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\gidan\AppData\Local\Temp\BAT_temp\brut_util_Jar_970597896526104612.tmp, p, —forced-package-id, 127, —min-sdk-version, 21, —target-sdk-version, 27, —version-code, 20190207, —version-name, 1.9.3, —no-version-vectors, -F, C:\Users\gidan\AppData\Local\Temp\BAT_temp\APKTOOL4172814149355971441.tmp, -0, arsc, -0, META-INF/android.arch.core_runtime.version, -0, META-INF/android.arch.lifecycle_livedata-core.version, -0, META-INF/android.arch.lifecycle_runtime.version, -0, META-INF/android.arch.lifecycle_viewmodel.version, -0, META-INF/com.android.support_animated-vector-drawable.version, -0, META-INF/com.android.support_appcompat-v7.version, -0, META-INF/com.android.support_support-compat.version, -0, META-INF/com.android.support_support-core-ui.version, -0, META-INF/com.android.support_support-core-utils.version, -0, META-INF/com.android.support_support-fragment.version, -0, META-INF/com.android.support_support-vector-drawable.version, -0, META-INF/services/org.threeten.bp.zone.ZoneRulesProvider, -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/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/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/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-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, bin\framework\1.apk, -S, C:\BatchApkTool_INPUT_APK\PaceCalendarWidget.1.9.3\res, -M, C:\BatchApkTool_INPUT_APK\PaceCalendarWidget.1.9.3\AndroidManifest.xml]
[
] —> Error recompiling «PaceCalendarWidget.1.9.3»

Читайте также:  С compiler android apk

DONE with 1 ERRORS.
Elapsed time: 29 sec.
`
What is the solution?

Источник

AndroidManifest.xml:17: error: No resource identifier found for attribute ‘isSplitRequired’ in package ‘android’ #2139

Comments

ifengchao commented Jul 23, 2019

Information

  1. Apktool Version ( apktool -version )
    ver 2.4.0
  2. Operating System (Mac, Linux, Windows)
    Win10
  3. APK From? (Playstore, ROM, Other)
    Playstore

Stacktrace/Logcat

Steps to Reproduce

apktool d will be success, but apktool b will show the problem, easy to reproduce.

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 )

If this APK can be freely shared, please upload/attach a link to it.

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?
apktool b not successful.

Are you using the latest apktool version?
Not tried 2.4.1 yet.

The text was updated successfully, but these errors were encountered:

iBotPeaches commented Jul 30, 2019

ifengchao commented Jul 31, 2019

Nice work, expecting 2.4.1

denysvitali commented Sep 1, 2019

I can confirm that the issue was fixed with c206599.
Attached you can find a build using the latest commit till now (683fef3) if you can’t wait for a release.
apktool-cli.tar.gz

@iBotPeaches Travis CI doesn’t store any artifacts for this project: is it possible to change that? It will be nice to have the latest build available on Travis (which could be in turn used for android-apktool or android-apktool-git)

gameFace22 commented Sep 27, 2019

I used the jar file you had included in the above comment because of the isSplitRequired error while recompiling the APK.

Читайте также:  Android directory is already exists

Unfortunately, I am getting the same error. Can you please let me know what to do?

@ifengchao did 2.4.1 work for you?

denysvitali commented Sep 30, 2019

@gameFace22 Can you delete the framework file and try again?

mbouzian42 commented Sep 30, 2019

Hello, i’m getting the same error..

aghontpi commented Oct 3, 2019 •

Facing the same issue,

  • the build provided by @denysvitali did not work,
  • tried deleting the framework file too.

edit:1
attached error,

edit:2
FIX:
remove all instance of «split» from androidManifest, then try building with 2.4.0.

Personally this worked for me:

go to this commit id c206599
download the android-framework.jar file & then do
apktool_2.4.0.jar if android-framework.jar
then try building with 2.4.0.

(use the framework file from latest build tools imo)

edit:3
as pointed out by @zlrab, is not installing,
remove all instance of «split» from androidManifest, then try building with 2.4.0.

zlrab commented Oct 8, 2019 •

  • the build provided by @denysvitali did not work,
  • tried deleting the framework file too.

edit:1
attached error,

edit:2
FIX:
remove all instance of «split» from androidManifest, then try building with 2.4.0.

go to this commit id c206599 download the android-framework.jar file & then do

apktool_2.4.0.jar if android-framework.jar

Your two solutions can make apktool2.4.0 build successfully,

but the generated apk can’t be installed on your phone.error: Failure [INSTALL_FAILED_INVALID_APK]

@Gopinath001 The problem is solved,Detailed plan:
Edit AndroidManifest.xml

  1. delete the following node properties on the Application:
  1. Edit as follows,ture modified to base
    old:
  1. Use apktool2.4.0 to build the project and install it successfully

AGSPhoenix commented Nov 3, 2019

When can we expect 2.4.1 to be released?

Decikingship commented Dec 2, 2019

  • the build provided by @denysvitali did not work,
  • tried deleting the framework file too.

edit:1
attached error,

edit:2
FIX:
remove all instance of «split» from androidManifest, then try building with 2.4.0.
(or)
go to this commit id c206599 download the android-framework.jar file & then do
apktool_2.4.0.jar if android-framework.jar

Your two solutions can make apktool2.4.0 build successfully,

but the generated apk can’t be installed on your phone.error: Failure [INSTALL_FAILED_INVALID_APK]

@Gopinath001 The problem is solved,Detailed plan:
Edit AndroidManifest.xml

  1. delete the following node properties on the Application:
  1. Edit as follows,ture modified to base
    old:
  1. Use apktool2.4.0 to build the project and install it successfully

Thanks, you solved my problem!
I use apktool 2.4.1 but are still faced with this problem, and I tried you method, it worked!

Источник

Оцените статью