Closed entwildfire closed 1 year ago
The log already hinted you the cause
00.654 I: [BUILD] Missing attribute: 'compileSdkVersion', skip loading frameworks
Framework loader scans your manifest to decide which framework version to use, however I can tell from your log there is a tag <uses-sdk>
.
For now use -framework-version 27
It will be fixed on next release
Thank you for answering. I pass the framework version as you said but the same error happened.
java -jar .\APKEditor-1.2.1.jar b -i .\decompile -o .\recompile\example.recompile.apk -framework-version 27
00.000 I: [BUILD] Building ...
Input: .\decompile
Output: .\recompile\example.recompile.apk
framework: 27
----------------------------
00.041 I: [BUILD] Scanning XML directory ...
00.062 I: [BUILD] Initializing preferred framework: 27
00.180 I: [BUILD] Initialized framework: 27
00.180 I: [BUILD] Scanning: decompile
00.197 [BUILD] Searching public.xml: .\decompile
00.275 I: [BUILD] Loading string pool ...
00.661 [BUILD] 3518 building pool: values-zu
00.739 I: [BUILD] Missing attribute: 'compileSdkVersion', skip loading frameworks
00.739 I: [BUILD] Set main package id from manifest: @drawable/icon
00.755 I: [BUILD] Main package id initialized: id = 0x7f, from: @drawable/icon
00.755 I: [BUILD] Encoding attrs ...
00.755 [BUILD] Encoding: values\attrs.xml
00.786 I: [BUILD] Encoding values ...
00.817 [BUILD] Encoding: values\styles.xml
ERROR:
Local entry not found: type=style, name=Theme.Light
Should I download this framework and place it somewhere? there is part of my manifest:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
android:versionCode="67"
android:versionName="1.29"
android:installLocation="auto"
package="com.example"
platformBuildVersionCode="27"
platformBuildVersionName="8.1.0">
<uses-sdk android:minSdkVersion="15"
android:targetSdkVersion="15" />
...
Hi. I am new to using this project. I tried to decompile an apk and then build exactly the same folder again.
decompile apk:
I tried to recompile some apk files, Most of them were success, But this specific apk failed with this error:
The row that includes this style:
<style name="CustomDialog" parent="@android:style/Theme.Light">
Note that the apk name and package id changed in the result.