Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUILD ERROR AFTER ADDING LIBRARY #65

Closed
iC00kScripts opened this issue Sep 15, 2016 · 5 comments
Closed

BUILD ERROR AFTER ADDING LIBRARY #65

iC00kScripts opened this issue Sep 15, 2016 · 5 comments

Comments

@iC00kScripts
Copy link

iC00kScripts commented Sep 15, 2016

So, I added the latest version of the library via maven
compile 'com.googlecode.ez-vcard:ez-vcard:0.9.11'
and when i try to run the application I get 968 errors (obviously repeating, I believe its a single error) below is a snippet of the error

Error:indicate that it is *not* an inner class. Error:warning: Ignoring InnerClasses attribute for an anonymous inner class Error:(freemarker.template.utility.XmlEscape$1) that doesn't come with an Error:associated EnclosingMethod attribute. This class was probably produced by a Error:compiler that did not target the modern .class file format. The recommended Error:solution is to recompile the class from source, using an up-to-date compiler Error:and without specifying any "-target" type options. The consequence of ignoring Error:this warning is that reflective operations on this class will incorrectly Error:indicate that it is *not* an inner class. Information:BUILD SUCCESSFUL Information:Total time: 1 mins 24.333 secs Information:968 errors

This is what currently what my dependencies are:
dependencies { compile 'com.tarun0.zxing-standalone:zxing-standalone:1.0.0' compile 'com.googlecode.ez-vcard:ez-vcard:0.9.11' compile 'com.android.support:appcompat-v7:23.4.0' compile 'com.android.support:support-v4:23.4.0' compile 'com.github.google:gson:1.7' compile files('libs/asmack-android-18-0.8.10.jar') }

Please help is needed urgently. Thanks

@mangstadt
Copy link
Owner

It looks like your build environment does not like Freemarker for some reason. Freemarker is one of ez-vcard's dependencies. However, you can safely exclude this dependency from your build as long as you are not using ez-vcard's hCard functionality.

I'm not too familiar with gradle, but I think this might work:

dependencies {
   compile ('com.googlecode.ez-vcard:ez-vcard:0.9.11') {
      exclude group: 'org.freemarker'
   }
}

Let me know if this helps.

@iC00kScripts
Copy link
Author

Thanks for the response. It's building fine now

@mangstadt
Copy link
Owner

Great! Let me know if you have any more questions!

@iC00kScripts
Copy link
Author

Hmmm, do you have a snippet to allow me use Action.VIEW of android to initiate a Vcard display/save to contact? the one I adopted keep throwing an exception. thanks in advance

@mangstadt
Copy link
Owner

No, sorry. :-P

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants