Eclipse ADT appcompat… what is it?

后端 未结 2 1988
北荒
北荒 2020-12-13 05:08

I\'ve spent all afternoon getting absolutely nowhere with this. I\'ve downloaded Eclipse, downloaded the SDK, installed the updates, but every new Android project I create s

相关标签:
2条回答
  • 2020-12-13 05:39

    I had this problem when I moved a project to a different laptop. I solved it like this:

    If appcompat_v7 is not available in Eclipse: From the File menu, choose New then Project. Next, choose Android and Android Project from existing Code, then click next Browse to find your appcompat_v7 project folder Make sure there’s a check mark next it in the ‘Projects to Import’ list If the appcompat_v7 project folder is not currently in your workspace, select ‘Copy projects into workspace’, then click Finish

    Now that the library project is available in your workspace, it can be added to a project: Choose your project from the Project Explorer and open the project properties (on a mac it’s in the Project menu) Click on Android in the left list Next to the Library list, click the Add button Choose appcompat_v7 from the list

    You should be good to go now.

    0 讨论(0)
  • 2020-12-13 05:54

    It's a support library which presumably your project refers to. You will need to build it as a library project in your workspace. This process is described here Support Library Setup under Adding libraries with resources.

    You will find the project you need to copy in your SDK in the folder:

    \yourSDKlocation\tools\android-sdk-windows4.4\extras\android\support\v7\appcompat

    (It's no use just copying a jar, you must build it as a library project.)

    0 讨论(0)
提交回复
热议问题