Recently, when compiling and decompiling the apk package, an error is shown in the title. google found a better solution on stackoverflow. Unfortunately, it still did not solve my problem. Follow the steps above, it may be caused by the following situations:
1. You have used features not available in the current Project target version in the Android Project configuration file. In this case, you only need to change the target version.
2. apktool. jar may not be the latest version. In this case, download the latest version of apktool. jar.
3rd, aapt.exe and apktool. bat may not be the latest on windows. In this case, you only need to download the latest version.
However, I did not use the target version of the platform package on windows platform. I firmly believe that this may cause the problem. After checking the error information, I found the following prompt, at that time, I guess whether this is the target version platform package automatically generated for us. When I enter the folder, I find that there is such a package, however, it was found that the modification date was the year before (not yet reached 4.0 at that time), and the target version of my current project was 17 (4.2), and The apktool folder was deleted decisively, re-decompilation and compilation will result in no errors shown in the title, and the apktool folder will be automatically generated again.
I hope the above findings will be helpful to my friends ~