Appcompat does not work

前端 未结 5 1466
青春惊慌失措
青春惊慌失措 2020-12-02 02:19

I am trying to use appcompat in my application. I have done everything according to the instructions. But when I add android-support-v7-appcompat as a library in my proect,

相关标签:
5条回答
  • 2020-12-02 02:22

    With "compatibility" files problems you can try to delete / or rename for security any appcompat "project" in eclipse and create a new project using a compatibility mode (different target and "required" SDK values, equals to your version needs), it will generate a new appcompat project, remember to link your existing project to this appcompat project and check your lib for no duplicate compat. jar.

    0 讨论(0)
  • 2020-12-02 02:28
    • delete appcompat.jar and v4-support.jar from libs folder
    • clean ur project

      How to add android-support-v7-appcompat as a library

    • import android-support-v7-appcompat in eclipse as a library project and check copy into workspace

    • add android-support-v7-appcompat as library in ur project
    • right click on ur project -----> properties ------>android ------> add

    how to add v-7 as library

    • clean ur project

    I think this will help u

    0 讨论(0)
  • 2020-12-02 02:29

    Before creating the project, run eclipse as Administrator so that it creates the jar in the location that it is referencing to.

    Right click the eclipse icon and select the option"Run as Administrator"

    0 讨论(0)
  • 2020-12-02 02:33

    Just do the following steps

    1. appcompat_v7_nn right click build project;
    2. click to your project, project clean
    0 讨论(0)
  • 2020-12-02 02:43

    Delete jar library from every directory you add. Then you need to add appcompat as a dependency. If you use Android Studio, you need to do as following:

    add this

    compile 'com.android.support:appcompat-v7:18.0.+'

    into your gradle dependencies and after that, Build -> Rebuild Project.

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