在'android'

时间:2015-09-12 16:12:10

标签: java android apktool

我正在重新编译miui帮助应用程序,但在重新编译时我遇到了错误。

 <application android:allowBackup="true" android:icon="@drawable/ic_launcher" android:label="@string/app_name" android:name="com.qihoo.util.StubApplication" **android:qihoo="activity"** android:theme="@style/AppTheme">
        <activity android:label="@string/app_name" android:name=".MainActivity" android:theme="@style/ActionBarTheme">

错误日志:

  

F:\ Downloads \ Compressed \ apkmanager \ 3-Out \ MIUIHelper.apk \ AndroidManifest.xml:11:错误:在'android'包中找不到属性'qihoo'的资源标识符

     

线程“main”中的异常brut.androlib.AndrolibException:brut.androlib.AndrolibException:brut.common.BrutException:无法执行命令:[C:\ DOCUME~1 \ ADMINI~1 \ LOCALS~1 \ Temp \ brut_util_Jar_2355496078147801760.tmp,p, - forced-package-id,127, - min-sdk-version,15, - target-sdk-version,22, - version-code,1, - version-name, 1.0,-F,C:\ DOCUME~1 \ ADMINI~1 \ LOCALS~1 \ Temp \ APKTOOL1767990981439973830.tmp,-0,arsc,-I,F:\ Downloads \ Compressed \ apkmanager \ 1-BDFreak \ Frameworks \ 1 .apk,-S,F:\ Downloads \ Compressed \ apkmanager \ 3-Out \ MIUIHelper.apk \ res,-M,F:\ Downloads \ Compressed \ apkmanager \ 3-Out \ MIUIHelper.apk \ AndroidManifest.xml]           在brut.androlib.Androlib.buildResourcesFull(Androlib.java:459)           在brut.androlib.Androlib.buildResources(Androlib.java:397)           在brut.androlib.Androlib.build(Androlib.java:285)           在brut.androlib.Androlib.build(Androlib.java:256)           在brut.apktool.Main.cmdBuild(Main.java:225)           在brut.apktool.Main.main(Main.java:84)       引起:brut.androlib.AndrolibException:brut.common.BrutException:无法执行命令:[C:\ DOCUME~1 \ ADMINI~1 \ LOCALS~1 \ Temp \ brut_util_Jar_2355496078147801760.tmp,p, - forced-package- id,127, - min-sdk-version,15, - target-sdk-version,22, - version-code,1, - version-name,1.0,-F,C:\ DOCUME~1 \ ADMINI~1 \ LOCALS~1 \ Temp \ APKTOOL1767990981439973830.tmp,-0,arsc,-I,F:\ Downloads \ Compressed \ apkmanager \ 1-BDFreak \ Frameworks \ 1.apk,-S,F:\ Downloads \ Compressed \ apkmanager \ 3-Out \ MIUIHelper.apk \ res,-M,F:\ Downloads \ Compressed \ apkmanager \ 3-Out \ MIUIHelper.apk \ AndroidManifest.xml]           在brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:419)           在brut.androlib.Androlib.buildResourcesFull(Androlib.java:445)           ......还有5个       引起:brut.common.BrutException:无法执行命令:[C:\ DOCUME~1 \ ADMINI~1 \ LOCALS~1 \ Temp \ brut_util_Jar_2355496078147801760.tmp,p, - forced-package-id,127, - min-sdk-version,15, - target-sdk-version,22, - version-code,1, - version-name,1.0,-F,C:\ DOCUME~1 \ ADMINI~1 \ LOCALS~ 1 \ Temp \ APKTOOL1767990981439973830.tmp,-0,arsc,-I,F:\ Downloads \ Compressed \ apkmanager \ 1-BDFreak \ Frameworks \ 1.apk,-S,F:\ Downloads \ Compressed \ apkmanager \ 3-Out \ MIUIHelper.apk \ res,-M,F:\ Downloads \ Compressed \ apkmanager \ 3-Out \ MIUIHelper.apk \ AndroidManifest.xml]           在brut.util.OS.exec(OS.java:89)           在brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:413)           ......还有6个

2 个答案:

答案 0 :(得分:0)

清单中删除 android:qihoo =&#34;活动&#34; ,然后运行。您也可以告诉我们哪个属性是 android:qihoo

答案 1 :(得分:0)

Android清单文件中的

Application元素没有任何名为qihoo的属性,您无法将自己的属性添加到此元素中。

因此,您的给定清单文件无效,应删除该属性。