Solution to error: Error: string types not allowed error during Android compilation and Decompilation

Source: Internet
Author: User
Recently, the title shown in the error occurred during the compilation and decompilation of the APK package, google uses stackoverflow features 1 in the android project configuration file and you use features not available in the current project target version. In this case, you only need to change the target version. 2. apktool. jar may not be the latest. In this case, download the latest version of apktool. jar. bat may not be the latest. In this case, you only need to download the latest version of the platform, but I have not used this version of the platform package on Windows, the problem may be caused by this. After checking the error information, we found the following prompt. At that time, we guessed whether the platform package of the target version was automatically generated for us, in the folder, I found that there was such a package, but I found that its modification date was the year before (it was not up to 4.0 at that time ), the target version of my current project is 17 (4.2). I deleted the apktool folder decisively and re-decompiled and compiled it without the error shown in the title. The apktool folder was also automatically generated.

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.