ReactNativeLocalization icon indicating copy to clipboard operation
ReactNativeLocalization copied to clipboard

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

Open donnie-s opened this issue 8 years ago • 0 comments

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 https://github.com/square/okio/issues/58 and I used that and adapted the workaround at http://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

donnie-s avatar Feb 03 '17 02:02 donnie-s