简体   繁体   English

Apktool 未编译 APK 文件,未创建 dist 文件夹

[英]Apktool not compiling APK file, no dist folder created

I tried compiling an app with apktool by doing this command: apktool b hw , but no dist folder or apk is created.我尝试通过执行以下命令使用 apktool 编译应用程序: apktool b hw ,但未创建 dist 文件夹或 apk。 I don't know what the issue is, as it only gives warnings, no errors.我不知道问题是什么,因为它只给出警告,没有错误。 The hw folder is decompiled by apktool. hw 文件夹由 apktool 反编译。 Output:输出:

I: Using Apktool 2.6.0
I: Checking whether sources has changed...
I: Checking whether sources has changed...
I: Checking whether sources has changed...
I: Checking whether sources has changed...
I: Checking whether sources has changed...
I: Checking whether sources has changed...
I: Checking whether sources has changed...
I: Checking whether sources has changed...
I: Checking whether sources has changed...
I: Checking whether sources has changed...
I: Checking whether sources has changed...
I: Checking whether sources has changed...
I: Checking whether sources has changed...
I: Checking whether sources has changed...
I: Checking whether sources has changed...
I: Checking whether sources has changed...
I: Checking whether sources has changed...
I: Checking whether sources has changed...
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
W: C:\Users\User\Downloads\hw\res\values\styles.xml:17: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/ActiveWallpaperSettings'.
W:
W: C:\Users\User\Downloads\hw\res\values\styles.xml:1548: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/DialogWindowTitle'.
W:
W: C:\Users\User\Downloads\hw\res\values\styles.xml:1556: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.TextView.ListSeparator'.
W:
W: C:\Users\User\Downloads\hw\res\values\styles.xml:2171: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Preference.Holo'.
W:
W: C:\Users\User\Downloads\hw\res\values\styles.xml:2226: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/PreferenceFragment.Holo'.
W:
W: C:\Users\User\Downloads\hw\res\values\styles.xml:2232: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/PreferenceFragmentList'.
W:
W: C:\Users\User\Downloads\hw\res\values\styles.xml:2238: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/PreferenceHeaderList'.
W:
W: C:\Users\User\Downloads\hw\res\values\styles.xml:3161: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.DeviceDefault.TextSelectHandle'.
W:
W: C:\Users\User\Downloads\hw\res\values\styles.xml:3656: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.Holo.Light.QuickContactBadgeSmall.WindowSmall'.
W:
W: C:\Users\User\Downloads\hw\res\values\styles.xml:3667: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.Holo.Light.Spinner.DropDown.ActionBar'.
W:
W: C:\Users\User\Downloads\hw\res\values\styles.xml:3700: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.Material.Spinner.DropDown'.
W:
brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\User\AppData\Local\Temp\brut_util_Jar_16380312480165228894185263819163371274.tmp, p, --forced-package-id, 127, --min-sdk-version, 19, --target-sdk-version, 28, --version-code, 1000152553, --version-name, 10.1.2.553, --no-version-vectors, -F, C:\Users\User\AppData\Local\Temp\APKTOOL11554412069323265251.tmp, -e, C:\Users\User\AppData\Local\Temp\APKTOOL3205927670635186590.tmp, -0, arsc, -I, C:\Users\User\AppData\Local\apktool\framework\1.apk, -S, C:\Users\User\Downloads\hw\res, -M, C:\Users\User\Downloads\hw\AndroidManifest.xml]
W: C:\Users\User\Downloads\hw\res\values\styles.xml:3754: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.Holo.SearchView'.
W:

I see that resource in the AOSP master branch.我在 AOSP 主分支中看到了该资源 So I'd recommend running apktool empty-framework-dir in case you have an outdated framework bundle.所以我建议你运行apktool empty-framework-dir以防你有一个过时的框架包。

This means Apktool on next run will regenerate it from the internal framework, which as of 2.6.0 is up to date.这意味着 Apktool 在下次运行时将从内部框架重新生成它,该框架从 2.6.0 开始是最新的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM