Aosp: Import project Error

Source: Internet
Author: User

Import an android project, which is filled with red forks, tricky!

No way. Let's break it all!

First use the android built-in tools to update it, the use of SEE: http://blog.csdn.net/androidbluetooth/article/details/6594401

If a package is missing, import the lost package using build path. The following error occurs:

The type R is already defined

Delete the R. Java Q & A folder under the src directory. At the beginning, this file was not found under the src directory, but under the src directory in eclipse, delete!

There is another problem:

Conversion to Dalvik format failed with error 1

This error occurs because I manually import the Android. jar package. solution:

Build path/configure..., delete the Android. jar file you just imported manually!

Clean it!

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.