Apktool: AndroidManifest.xml:17: error: No resource identifier found for attribute 'isSplitRequired' in package 'android'

Created on 23 Jul 2019  路  10Comments  路  Source: iBotPeaches/Apktool

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

None

Include stacktrace here

None

Steps to Reproduce

  1. apktool

apktool d will be success, but apktoolb 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)

None

APK

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

https://www.lanzous.com/i54do4f

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

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

Most helpful comment

Facing the same issue,

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

edit:1
attached error,
rebuild 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,

remove isSplitRequired attr

apktool_2.4.0.jar if android-framework.jar

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:
android:isSplitRequired="true"
android:extractNativeLibs="false" 
//Optional
android:networkSecurityConfig="@xml/network_security_config"
  1. Edit as follows,ture modified to base
    old:
<meta-data android:name="com.android.vending.splits.required" android:value="true"/>

new:

<meta-data android:name="com.android.vending.splits.required" android:value="base"/>
  1. Use apktool2.4.0 to build the project and install it successfully

All 10 comments

Nice work, expecting 2.4.1

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)

Hey @denysvitali and @iBotPeaches

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

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

Screenshot 2019-09-27 at 4 55 55 PM

@ifengchao did 2.4.1 work for you?

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

rm /Users/nshaanth/Library/apktool/framework/1.apk

Hello, i'm getting the same error..

Facing the same issue,

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

edit:1
attached error,
rebuild 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.

Facing the same issue,

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

edit:1
attached error,
rebuild 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,

remove isSplitRequired attr

apktool_2.4.0.jar if android-framework.jar

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:
android:isSplitRequired="true"
android:extractNativeLibs="false" 
//Optional
android:networkSecurityConfig="@xml/network_security_config"
  1. Edit as follows,ture modified to base
    old:
<meta-data android:name="com.android.vending.splits.required" android:value="true"/>

new:

<meta-data android:name="com.android.vending.splits.required" android:value="base"/>
  1. Use apktool2.4.0 to build the project and install it successfully

When can we expect 2.4.1 to be released?

Facing the same issue,

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

edit:1
attached error,
rebuild 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,

remove isSplitRequired attr

apktool_2.4.0.jar if android-framework.jar

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:
android:isSplitRequired="true"
android:extractNativeLibs="false" 
//Optional
android:networkSecurityConfig="@xml/network_security_config"
  1. Edit as follows,ture modified to base
    old:
<meta-data android:name="com.android.vending.splits.required" android:value="true"/>

new:

<meta-data android:name="com.android.vending.splits.required" android:value="base"/>
  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!

Was this page helpful?
0 / 5 - 0 ratings