无法加载从装载机shinobicharts,机器人 [英] Can't load shinobicharts-android from loader
问题描述
我想测试一下为Android库ShinobiCharts。我已经包括库文件夹作为项目依赖(我在的IntelliJ),以及所有相关的类(例如ShinobiChart,ChartFragment等)编译就好了。但是当我运行该项目,我得到以下错误: java.lang.UnsatisfiedLinkError中:无法加载从装载机dalvik.system.PathClassLoader
shinobicharts-机器人。我不明白库如何编译罚款,但随后在运行时失败。任何想法?
I'm trying to test out the ShinobiCharts for Android library. I have included the library folder as a project dependency (I'm on Intellij), and all the relevant classes (e.g. ShinobiChart, ChartFragment, etc) compile just fine. But when I run the project, I get the following error: java.lang.UnsatisfiedLinkError: Couldn't load shinobicharts-android from loader dalvik.system.PathClassLoader
. I don't understand how the libraries can compile fine but then fail at runtime. Any ideas?
推荐答案
解决方案:的IntelliJ和Eclipse都,忽略ShinobiCharts提供的说明添加库作为一个项目,或添加一个Jar到构建路径,等等。相反,导航到ShinobiCharts下载libs文件夹(即shinobichart-的Android库/库),然后做是:(a)如果你已经有了一个libs文件夹,复制这个的的的内容文件夹(即不是文件夹本身)到你的项目中libs文件夹;或(b)如果您没有在项目中的libs文件夹,则只需复制整个libs文件夹到您的项目。只有这样的IntelliJ / Eclipse中揣摩出文件在运行时。
Solution: for both IntelliJ and Eclipse, ignore the instructions provided by ShinobiCharts for adding the library as a project, or adding a Jar to the build path, etc. Instead, navigate to the libs folder in the ShinobiCharts download (i.e. shinobichart-android-library/libs), and then do either: (a) if you already have a libs folder, copy the contents of this folder (i.e. not the folder itself) into the libs folder inside your project; or (b) if you don't have a libs folder in the project already, just copy the entire libs folder into your project. Only then will Intellij/Eclipse figure out where the files are at runtime.
这篇关于无法加载从装载机shinobicharts,机器人的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!