Android: heap error importing ShowcaseView as a project, ClassNotFound if as a JAR, out of memory

I am trying to run ShowcaseView in my Android project. I forked a repo from GitHub and tried to run a demo application, but could not due to a Java Heap error.

Unable to execute dex: Java heap space

I tried to increase the memory heap of Eclipse and RunConfiguration, but could not solve the problem. I also had no errors in the java heap area in months, so I wonder if there is some kind of loop, somewhere too much RAM request volume is being generated.

Since importing the project did not work, but the build does work, I tried to import the ShowcaseView library JAR file directly into the libs folder of my project. My project was launched, but

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

What can I do? Has anyone ever encountered such a problem? I really love this library and want to have this function in my project, but I am so stuck in this problem: - /

Thank you in advance

+4
source share
1 answer

This seems like a known issue because the Robolectric JAR is included in the library. The issue is described in detail on Github , and there is also a workaround. I will investigate further and update the library with the fix soon!

+6
source

All Articles