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 version 2.1+), I keep getting the error android-support-v7-appcompat] Could not find android-support-v7-appcompat.apk
!.
The app still runs and functions, though the Action bar does not have the buttons I added. I've read other posts on this issue, and made sure that I included android-support-v7-appcompat as a library.
Is there anything I need to add to the build path (not in order and export I already have it checked off there)?
Thanks! Forgot to mention that I am using eclipse in case it wasn't clear. After digging around reading some more posts, it seems strange that my app still runs since others with this problem have theirs crash.
NOTE: Not sure if this matters but I had to manually add the string "action_search" for android:title = "@string/action_search" in main_activity_actions.xml (in res/menu/)- should this have been added automatically with appcompat?
Full console output below:
[2013-08-24 13:19:04 - MyFirstApp1] Android Launch!
[2013-08-24 13:19:04 - MyFirstApp1] adb is running normally.
[2013-08-24 13:19:04 - MyFirstApp1] Performing com.example.myfirstapp1.MainActivity activity launch
[2013-08-24 13:19:04 - MyFirstApp1] Automatic Target Mode: using existing emulator 'emulator-5554' running compatible AVD 'AVD1'
[2013-08-24 13:19:04 - MyFirstApp1] Uploading MyFirstApp1.apk onto device 'emulator-5554'
[2013-08-24 13:19:04 - MyFirstApp1] Installing MyFirstApp1.apk...
[2013-08-24 13:19:08 - MyFirstApp1] Success!
[2013-08-24 13:19:08 - android-support-v7-appcompat] Could not find android-support-v7-appcompat.apk!
[2013-08-24 13:19:08 - MyFirstApp1] Starting activity com.example.myfirstapp1.MainActivity on device emulator-5554
[2013-08-24 13:19:09 - MyFirstApp1] ActivityManager: Starting: Intent {
act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER]
cmp=com.example.myfirstapp1/.MainActivity
Go to Java Build Path > Projects and remove the incorrect project dependency (your Android library project.) Note that in the "Android" section of the project settings the Android library that you're dependent on must be listed in the ~"Libraries" box.
maybe you can remove the android-support-v7-appcompat project from your build path. In Eclipse: - Right click into your project - Properties - List item - Java Build Path - Projects - under "Required projects on the build path:" --> select "android-support-v7-appcompat" and click "remove"
This have been solved the problem for me.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With