swagger-api / swagger-api/swagger-codegen

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

Open
#5,279 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Client: Java Enhancement: General help wanted
Dominant language
Mustache
Stars
17.8k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

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'
        }

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate the Android build.gradle.mustache template and reproduce the reported Gradle Lint error involving okio-1.6.0.jar and java.nio.file. Compare the generated build with the shown lintOptions workaround, then verify the generated Android build no longer reports the InvalidPackage error.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
build-system, mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.