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

Use SnakeYAML version for Android #4

Open
simonpoole opened this issue Jan 22, 2017 · 1 comment
Open

Use SnakeYAML version for Android #4

simonpoole opened this issue Jan 22, 2017 · 1 comment

Comments

@simonpoole
Copy link

Currently MockWebServerPlus fails with

java.lang.NoClassDefFoundError: Failed resolution of: Ljava/beans/Introspector;
at org.yaml.snakeyaml.introspector.PropertyUtils.getPropertiesMap(PropertyUtils.java:63)

when used for an Android on device test. This could be avoided by using the SnakeYAML version for Android, see https://bitbucket.org/asomov/snakeyaml/wiki/Android

@sachinmeesho
Copy link

Use this-

        androidTestCompile('com.orhanobut:mockwebserverplus:1.0.0') {
		exclude module: 'snakeyaml'
	}
	androidTestCompile 'pl.droidsonroids.yaml:snakeyaml:1.18-android'

Works for me.
It just excludes snakeyaml module and 'pl.droidsonroids.yaml:snakeyaml:1.18-android' this lib gives Introspector implementation.

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