安卓:堆错误导入ShowcaseView作为项目,如果ClassNotFound的JAR如,内存不足 [英] Android: heap error importing ShowcaseView as project, ClassNotFound if as JAR, Out of Memory

查看:298
本文介绍了安卓:堆错误导入ShowcaseView作为项目,如果ClassNotFound的JAR如,内存不足的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图让ShowcaseView到我的Andr​​oid项目。我从GitHub叉回购,并试图运行演示程序,但不能在Java堆错误的原因。

I'm trying to get ShowcaseView into my Android project. I forked the repo from GitHub and tried to run the demo app, but couldn't because of a Java Heap error.

Unable to execute dex: Java heap space

我试图增加Eclipse和RunConfiguration内存堆,但解决不了的问题。我还从来没有在几个月Java堆空间错误,所以我不知道是否有某种循环某处产生太大量的内存请求。

I tried to increase Eclipse and RunConfiguration memory heap but couldn't solve the issue. I also never had a java heap space error in months, so I wonder if there is some kind of loop somewhere generating a too large amount of RAM request.

由于导入项目没有工作,但建筑不工作,我想直接在我的项目的libs文件夹导入ShowcaseView库JAR文件。我的项目跑了,但有一个

Since importing the project didn't work, but building does work, I tried to import the ShowcaseView library JAR file directly in the libs folder of my project. My project ran but had a

java.lang.NoClassDefFoundError: com.github.espiandev.showcaseview.R$styleable

我能做些什么?有没有人遇到过这种问题?我真的很喜欢这个库,并希望有此功能在我的项目,但我这样坚持了这个问题: - /

What can I do? Did anybody ever experience this kind of issue? I really love this library and would like to have this feature in my project, but I'm so stuck with this issue :-/

感谢您提前

推荐答案

这似乎是一个已知的问题,由于包含在库中的Robolectric JAR。这个问题有详细的 Github上,而且也似乎是一种解决方法有太多。我会进一步调查,并能尽快修复更新库!

This seems to be a known issue, due to the Robolectric JAR included in the library. The issue is detailed on Github, and there also seems to be a workaround there too. I'll investigate further and update the library soon with a fix!

这篇关于安卓:堆错误导入ShowcaseView作为项目,如果ClassNotFound的JAR如,内存不足的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆