swagger-api / swagger-codegen

swagger-codegen contains a template-driven engine to generate documentation, API clients and server stubs in different languages by parsing your OpenAPI / Swagger definition.
http://swagger.io
Apache License 2.0
17.06k stars 6.03k forks source link

[JAVA okhttp-gson; target=Android] Gradle Android build Lint error #5279

Open sytolk opened 7 years ago

sytolk commented 7 years ago

Package not included in Android ../../../../../.gradle/caches/modules-2/files-2.1/com.squareup.okio/okio/1.6.0/98476622f10715998eacf9240d6b479f12c66143/okio-1.6.0.jar: Invalid package reference in library; not included in Android: java.nio.file. Referenced from okio.Okio.

https://github.com/square/retrofit/issues/1014

To suppress this I have add custom build.gradle.mustache template with:

lintOptions {
            warning 'InvalidPackage'
        }
wing328 commented 7 years ago

@sytolk thanks for reporting the issue. Please file a PR with the suggested fix so that we can review more easily.