java.lang.NoClassDefFoundError的:android.support.v7.mediarouter.R $字符串 [英] java.lang.NoClassDefFoundError: android.support.v7.mediarouter.R$string
问题描述
荫构建它是使用支持库的应用程序。
Iam building an Application which is using the support libraries.
有在我的项目没有编译错误,但是当我跑我看到的logcat此消息:
There is no compilation errors on my project but when I run I see this message in the logcat :
java.lang.NoClassDefFoundError的:android.support.v7.mediarouter.R $字符串
java.lang.NoClassDefFoundError: android.support.v7.mediarouter.R$string
显然是一个解决办法是在其上运行的库项目,我确实使用了android update命令工具的更新,但它并没有帮助。
Apparently a solution to that was to run an update on the libraries project which i did using the android update command tool, but it did not help.
请点击这里完整的logcat日志
please click HERE for the full logcat log
推荐答案
而不是引用的JAR文件的库中,你应该引用库的源$ C $ C直接。
Rather than referencing the JAR file for the library , you should reference the library's source code directly.
这篇关于java.lang.NoClassDefFoundError的:android.support.v7.mediarouter.R $字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!