Eclipse import someone else's source code, error resolution process

Source: Internet
Author: User

1. From the Apkbus download a source code, want to study, the result is wrong, after a variety of Baidu, experiment, finally solved, and now record a bit.

File-import Import the source file.

Res-values-styles.xml compile error, prompting no resource found that matches the given name ' Theme.AppCompat.Light '. Sort of, view project Project.proties file

Found referencing the APPCOMPAT_V7 project, Baidu, found that the high version wanted to reference the lower version of the API when it was necessary to use APPCOMPAT_V7 this version, so we added appcompat_v7 this class library,

Need to ensure that SDK Manager has downloaded V7 support

, directory structure

Directly referencing the new class library allows you to

Found values-21 error after import, Solution SDK Manager inside download API21 sdk,project.proties inside Target changed to, Project clean can ... There's a little step back.

Source Code project Reference AppCompat class library ... Property: Android:add

or an error,

Try adding bulid path, add to Build path ... Configur Lib still does not work.

Baidu, need to put the source directory and AppCompat directory down a disk, look at the front of the path, respectively, placed on the C and D disk, delete and try again

Re-add Class library, res directory does not error ...

This actionactivity also reported wrong, change to activity on it ...

Eclipse import someone else's source code, error resolution process

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.