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 issue with customized okreplay #85

Open
mallocanswer opened this issue Feb 4, 2019 · 1 comment
Open

Build issue with customized okreplay #85

mallocanswer opened this issue Feb 4, 2019 · 1 comment

Comments

@mallocanswer
Copy link

My app doesn't use okhttp in the network layer so I have to copy the okreplay implementation into my project and make some modifications. Now the app fails to compile because yaml has dependency on java.beans.IntrospectionException but Android didn't package that class into release (https://stackoverflow.com/questions/5488236/is-there-a-work-around-for-the-android-error-unable-to-resolve-virtual-method-j)
Compile error:

demo_android_espresso_idlingresource_okreplay/app/src/main/java/com/elyeproj/okreplay/TapeRepresenter.java:78: error: cannot access IntrospectionException
        Set<Property> properties = super.createPropertySet(type, bAccess);
                                                          ^
  class file for java.beans.IntrospectionException not found
1 error

Sample app:
demo_android_espresso_idlingresource_okreplay.zip
Command to run:
./gradlew installDebug

@mallocanswer
Copy link
Author

I didn't get the compile error if I directly import okreplay. Wondering if anything I can do to avoid this error.
Note: I have to copy the okreplay project over since my app has different network stack and I need to tailor few classes

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

1 participant