简体   繁体   中英

Cant run Android app in eclipse; error is that library 'appcompat_v7' and 'android-support-v4.jar' missing. Cant seem to add these libraries however

I'm trying to run an android app that was working fine on another computer, but now I am getting an error when I import it. Its telling me that these two libraries are missing:

appcompat_v7\libs\android-support-v4.jar
""\""\android-support-v7-appcompat.jar

I've looked at a lot of other fixes for this error online but it wont work for me. When I go right click and go to package properties, it wont allow me to import thee libraries, they're not there. Also when I right click>android>add support libraries, and after it finished, still same error. I am 99% sure I have android SDK installed correctly. What else could be causing this?

Here's the project.properties

#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project‌​.txt 
# Project target. 
target=android-21 
android.library=false 
android.library.reference.1=../../workspace/appcompat_v7

控制台中错误的屏幕截图

Thanks

Okay, I feel like I know what your problem is:

On your other 1st-computer, this project was referencing libraries from another project-library, one that existed in the directory: /workspace/appcompat_v7/

When you copied that project over to a different 2nd-computer and imported it, you forgot to also include that other project-library, but this project is still trying to reference a library that doesn't exist here.

You need to copy over the project-library /workspace/appcompat_v7/ over to your 2nd-computer, then double check / update the library location to match.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM