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

Lint InvalidPackage error due to okio jar https://github.com/square/okio/issues/58 #60

Open
donnie-s opened this issue Feb 3, 2017 · 0 comments

Comments

@donnie-s
Copy link

donnie-s commented Feb 3, 2017

Hi,

Your library is really useful, thanks.
I'm an iOS dev but had to integrate your library with both platforms and hit a problem with Android:

On running ./gradlew lintDebug I get an error

Correctness InvalidPackage: Package not included in Android <path stuff>/okio-1.5.0.jar: Invalid package reference in library; not included in Android: java.nio.file. Referenced from okio.Okio.

Googling brought me to square/okio#58 and I used that and adapted the workaround at https://stackoverflow.com/a/25149514 to find a solution for me that didn't involve editing your library's code because we install it as a node module during our CI job.

To help others who might hit the same issue I suggest you add a lintOptions to your gradle file like https://github.com/oblador/react-native-vector-icons/blob/master/android/build.gradle#L23

Regards
Donnie

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

No branches or pull requests

2 participants