Android manifest xml error

Содержание
  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. duplicated with element declared at AndroidManifest.xml #418
  20. Comments
  21. MohammedSaberMohammed commented Feb 25, 2017 •
  22. wildabeast commented Mar 16, 2017
  23. jbankester commented Apr 5, 2017
  24. jbankester commented Apr 6, 2017
  25. macdonst commented Apr 6, 2017
  26. jbankester commented Apr 6, 2017
  27. thomasblom commented Jun 26, 2017
  28. giscafer commented Jul 13, 2017
  29. teckyin commented Jul 31, 2017
  30. jaufgang commented Aug 18, 2017 •

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.

Читайте также:  Переключение между аккаунтами вконтакте android

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.

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»

Читайте также:  Android intents and activities

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

Источник

duplicated with element declared at AndroidManifest.xml #418

Comments

MohammedSaberMohammed commented Feb 25, 2017 •

hello everyone i have a problem which is the following when i run
—> ionic run android

and this is AndroidManifest.xml

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

wildabeast commented Mar 16, 2017

Can’t see your AndroidManifest.xml, please properly escape your code.

jbankester commented Apr 5, 2017

I just ran into the same issue building after updating from v6.0.1 to v6.0.6.

:processReleaseManifest
C:\development\Mobile\platforms\android\AndroidManifest.xml:13:9-18:20 Error:
Element activity#com.google.zxing.client.android.CaptureActivity at AndroidManifest.xml:13:9-18:20 duplicated with element declared at AndroidManifest.xml:11:9-311

C:\development\Mobile\platforms\android\AndroidManifest.xml Error:
Validation failed, exiting

jbankester commented Apr 6, 2017

I found that after removing the plugin

phonegap plugin rm phonegap-plugin-barcodescanner

The following element remained in AndroidManifest.xml and would be added again on each build attempt.

I deleted the top level AndroidManifest.xml as well as the same file from

I also deleted the android.json file from

I was then able to install the latest version of the plugin and build successfully.

macdonst commented Apr 6, 2017

@MMAANNSS so the problem has gone away after removing and re-adding the platform?

jbankester commented Apr 6, 2017

Yeah, I initially tried just removing the extra element from AndroidManifest.xml but it gets put back in there if you don’t get rid of it everywhere.

thomasblom commented Jun 26, 2017

I still have this problem. The steps of jbankester to delete the manifest and install the plugin again and build for Android did not work. Does anyone else have a solution?

Читайте также:  Vulkan platinum для андроида

giscafer commented Jul 13, 2017

Error: cmd: Command failed with exit code 1 Error output: F:\workspace\app-jzt\platforms\android\AndroidManifest.xml:131:5-65 Error: Element uses-permission#android.permission.CAMERA at AndroidManifest.xml:131:5-65 duplicated with element declared at AndroidManifest.xml:130:5-90 F:\workspace\app-jzt\platforms\android\AndroidManifest.xml:132:5-60 Error: Element uses-feature#android.hardware.camera at AndroidManifest.xml:132:5-60 duplicated with element declared at AndroidManifest.xml:128:5-85 F:\workspace\app-jzt\platforms\android\AndroidManifest.xml Error: Validation failed, exiting

teckyin commented Jul 31, 2017

@MMAANNSS Hi, I’m having the same issue with «duplicated element declared at AndroidManifest.xml» after I’ve installed this barcode scanner. But for my case, there’s multiple permission request on Camera and the cause of this issue is having cordova-plugin-qrscanner and phonegap-plugin-barcodescanner installed and both of the plugins is requesting the same permission. After I’ve removed the cordova-plugin-qrscanner everything went smooth.

jaufgang commented Aug 18, 2017 •

Does this mean it is not possible to have multiple plugins that use the camera used by a cordova app, even if the app does not use both plugins at the same time? Simply because they both need to ask for the same permission?

Источник

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