简体   繁体   English

Android应用程序无法找到外部库和R文件

[英]Android app not being able to find an external library and R file

So I have an android app and added a third party library to it. 因此,我有一个android应用程序,并向其中添加了第三方库。 The code will compile fine, however, when I get to where methods of that library are, the program will stop with a bunch of errors starting with 代码可以很好地编译,但是,当我到达该库的方法所在的位置时,该程序将以一堆错误开头,以

    W/XWalkInternalResources(10703): org.xwalk.core.R$string.color_picker_button_cya
n is not found.

(and similiar messages with all the other things in the R file) (以及与R文件中所有其他内容类似的消息)

and then 接着

I/LibraryLoader(10703): Loading: xwalkcore
D/dalvikvm(10703): Trying to load lib /data/app-lib/org.yaxim.androidclient-2/li
bxwalkcore.so 0x430ba840
D/dalvikvm(10703): Added shared lib /data/app-lib/org.yaxim.androidclient-2/libx
walkcore.so 0x430ba840
W/System.err(10703): java.lang.NoClassDefFoundError: org/xwalk/core/AndroidProto
colHandler
W/System.err(10703):    at java.lang.Runtime.nativeLoad(Native Method)
W/System.err(10703):    at java.lang.Runtime.loadLibrary(Runtime.java:379)
W/System.err(10703):    at java.lang.System.loadLibrary(System.java:535)
W/System.err(10703):    at org.chromium.base.library_loader.LibraryLoader.loadAl
readyLocked(LibraryLoader.java:139)

I've doubled checked everything from the buildpath to the dependencies in the properties. 我已经仔细检查了从buildpath到属性中的依赖项的所有内容。 Any ideas? 有任何想法吗?

Have you tried to clean your project ? 您是否尝试过清理项目?

(Project > Clean...) (项目>清洁...)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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