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!