Android appcompat v7 error

后端 未结 9 576
盖世英雄少女心
盖世英雄少女心 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:59

    The accepted answer worked for me but only after I'd installed the latest Java JDK (which was a solution to the problem detailed here Android - "Parsing Data for android-21 failed")

    0 讨论(0)
  • 2020-12-10 13:01

    Strange fix but this worked for me ( My minimum SDK for my project is 10 - can't use 14)

    1. Right-click on the "appcompat_v7" project and go to -> Properties -> Android.
    2. Your target build should already be set at the latest build (in my case Android 5.0.1). Click any other android package (apart from its current target) and click "Apply". Click "Ok" to close the box.
    3. Re-open the Properties box by the same method but this time check the latest build (in my case Android 5.0.1) as the Project Build Target. Click "Apply", then "Ok" to close the box.
    4. Clean the appcompat_v7 project. You'll probably need to clean/build all other projects that reference this library.

    This solved it for me.

    0 讨论(0)
  • 2020-12-10 13:02

    I solved it by downloading the file manually somewhere on the internet (be careful) and putting it into the needed \appcompat_v7\bin\ folder before creating a new Android project. After that, also my R.java file was generated successfully.

    Honestly, no other way seemed to fix it. Could not obtain the file via the SDK manager.

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