"Android" Solution to import project error

Source: Internet
Author: User

1, hit the project properties-->android for it to refer to a version of the transport,

2, modify the default properties file, change the corresponding version level

3. Select the item, right-click, select Properties, open Android to select the appropriate SDK

4, Project-->clean. KO

(Blue Moon need to specify SDK for Googles APIs)

Eclipse startup when the Android SDK Content loader stuck

Right-click Android Project-"Java Build path--" Order and Export
Select Android x.x, and move it to the first one.

Default.properties file solution for import project in Android

When we import Android projects, there are sometimes errors described in title, open the project catalog to see, The default.properties file under the directory does not have or more than a project.properties file, default.properties the main role of the file and information in the notes in the document said very clearly, this side is not more said Ha ~

So how do we solve this mistake? It's actually very simple-there are two ways:

1, to other projects to copy this default.properties file directly with, no relationship, can be used, are the same ~

2, there is a super simple method ha, that is, the Project.Properties file renamed to Default.properties name is ok~

Android R.java file is missing or cannot be updated workaround

First make sure that your SDK is new.

Next, check your. xml file, and the file name cannot be capitalized.

If there are too many XML files, then clean your project and watch the console prompt.

Console will prompt you where the XML file is wrong

After you finish modifying the XML file

Clean your project and build your project again

R.java will re-appear or update

Android in development will automatically generate a R.java file, this file is automatically generated, it is best not to change. But sometimes this Java file will be with us to hide and seek, in the program r.xx.xxx will appear frequently error phenomenon. &NBSP
1  to project click mouse Right   select   Build Project , R.java file back again. So r.xx.xxx can come out of X.  
  
If you do not try the second method  

2 Select Eclipse/myeclipse  clean  such R file will also appear
if not Try a third type of  

3 It's not going to work either way. Use the trick to copy an R file from another project and then change the R file in String.xml to update the  
If you can't try a fourth

4 After all the 3 methods above, it means we have a problem with the project.
   For example, file naming in Resoure resources, example Result_main.xml, if written result_main.xml is wrong need all lowercase

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.