Error: Error: String types not allowed error occurs during Android compilation and decompilation.

Source: Internet
Author: User

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 ~

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.