Android Could not find android-support-v7-appcompat.apk error

前端 未结 5 964
难免孤独
难免孤独 2020-12-10 14:25

I have been going though the android tutorial on the developer site, and have run while trying to add actions to the Action bar (I am using the Support Library to support ve

5条回答
  •  死守一世寂寞
    2020-12-10 15:00

    I had the same issue (except my app crashed).

    Basically, I just followed the Support Library Setup on the android site.

    I had the following things wrong, and once fixed, the app ran as expected:

    • Didn't add the android-support-v4.jar and android-support-v7-appcompat.jar to the build path (step 5)
    • Didn't export android-support-v7-appcompat.jar to the build path (step 7)
    • Had the android-support-v7-appcompat project added on the build path (Project > Properties > Java Build Path > Projects)

    Once I fixed these things, I needed to remove and re-add the android-support-v7-appcompat project as a library (Project > Properties > Android > Library > Add)

    Hope the link above helps anyone coming across this page.

提交回复
热议问题