Android studio loads third-party jar packages + Chinese garbled characters

Source: Internet
Author: User

One day I opened Android studio and ran an app that was intact yesterday. Unexpectedly, various jar packages could not be found, but the problem was clearly found, and there was also a Red Cross in the project ~

Try the following method:


1. After the delete packet is dropped, add it again.

If an error is reported

2. Find this method on the Internet and add dependencies to the dependencies node in the build. gradle file of the project.

{

Compile files ('libs/android-support-v4.jar ')

Compile files ('libs/xxxx. jar ')

}

However, my project is imported from eclipse. Somehow there is no build. gradle file, but there is a new project!

Abandon ~

3. After trying to restart the IDE, I plan to re-import the project. After overwriting the previous project, the build was successful. Nima, let's see what happened!


For programmers, the most worrying thing is not to solve the problem, but to spend two hours solving the problem and then find out why such a strange bug exists, just like an invisible time bomb, I don't know which day it will repeat again!


At the beginning, I started to use Google's new Android studio. All kinds of problems, so far, are still very hard to solve: Chinese Garbled text. It is still garbled to modify various configurations, at last, you can only find the encoding method with the least garbled characters, and then delete all garbled comments... Helpless ~


Isn't this forcing elder sister to return to the eclipse age? For solutions to these two problems, please kindly advise! Thank you!

Related Article

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.