Android Tips your project contains error (s), please fix them before running your application

Source: Internet
Author: User

Under Android, sometimes when we import our own projects or others ' projects into our own local, we see a red "X" or "!" in front of the project. ", such as:

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/26/CB/wKiom1NszhDwyx06AAAdkjfP2Fs387.jpg "title=" Qq20140509204215.png "alt=" Wkiom1nszhdwyx06aaadkjfp2fs387.jpg "/>

Or

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/26/CB/wKioL1Nsz1Dz3MfeAAASfddIDMo969.jpg "title=" Qq20140509204820.png "alt=" Wkiol1nsz1dz3mfeaaasfddidmo969.jpg "/>

And when we run the project, the following prompt pops up:

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/26/9C/wKiom1NsU4HwKzZMAAB8O4U70nc951.jpg "title=" QQ picture 20140509114030.jpg "alt=" Wkiom1nsu4hwkzzmaab8o4u70nc951.jpg "/>

Before I met a few times this problem, very depressed, because do not know where there is the so-called error (s), the pit is not deceptive ah ~

You can see the Problems tab in the Debug window, as shown below.

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/26/CB/wKiom1Ns0BfjsQRtAAGXQgsHz6s147.jpg "title=" Qq20140509205102.png "alt=" Wkiom1ns0bfjsqrtaagxqgshz6s147.jpg "/>

The error that causes our local program to run is here, so that we can make changes based on the prompt of the problem. Let's talk about a situation that tends to occur when someone else's project is imported locally.

tip "Project ' XXX ' is missing required library: ' D:\workspace\XXX\libs\XXX.jar ', This problem occurs because the original creator of the project added an external jar package under this d:\ path, while in your local? One is maybe you don't have this external package at all, and the other one is you have, but the path is not consistent with the reference jar package path set by the original creator.

Workaround: Re-reference the jar package, step to "project" right--"properties", "Java Build Path" At this time you can see that there is a jar package that does show missing, that is, no lead. So we just have to click on the "Add External jar" On the right and select the location of our local JAR package in the file directory. Then the "Remove" of the red X before it is perfect. Reference

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/26/CB/wKiom1Ns0nPiFCfDAAMdl_IsXYY198.jpg "title=" Qq20140509205909.png "alt=" Wkiom1ns0npifcfdaamdl_isxyy198.jpg "/>

After setting up, we will find the red "X" or "in front of the item in the left column"! "Gone, and then we run this project, and there may be the following scenario:

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/26/CB/wKiom1Ns1b-wRqyLAAJlGMPBAF0736.jpg "title=" Qq20140509211259.png "alt=" Wkiom1ns1b-wrqylaajlgmpbaf0736.jpg "/>

What is the reason for this? It must be because you use the debug device is also taken from other people, and the previous project on this device run the project, that is, this debugging device has installed the app. So, as long as we remove the previously installed app, and then run it, you can use it normally.

Because this is the case, so the solution to tell everyone, but even if the encounter is not what I said the error, there must be a solution, so everyone encountered the project download to the local run, do not be impatient, a little bit to solve the problem.

Finally hope to help the people who need it.

This article is from the "Give Me a Gener cigarette" blog, please be sure to keep this source http://zhouhongyu1989.blog.51cto.com/2931598/1409036

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.