Android appcompat v7 error

后端 未结 9 591
盖世英雄少女心
盖世英雄少女心 2020-12-10 12:21

Being new to Android developent I followed the simplest of tutorials, built a new android project, accepting all default settings (built it for kitkat). To my dismay I have

9条回答
  •  [愿得一人]
    2020-12-10 12:53

    I had the same problem and I tried all of mentionded above advices and much more from, but no one helped me to solve my issue. My solution was creating a progect with minimum required SDK API 14: Android 4.0 (IceCreamSandwich). Doing this way Eclipse will not create appcompat_v7 project.

    Also I found another, better, solution:

    1. Go to Android SDK Manager and install Android 5.0.1 (API 21) or newer. If you don't use the emulator you can install only SDK Platform and Google APIs;
    2. Go to appcompat_v7 -> Properties -> Android and check Android 5.0.1 in the Project Build Target;
    3. Then go to Java Build Path -> Order and Export and check Android 5.0.1;
    4. Do the same procedure for your project.

提交回复
热议问题