swagger-api / swagger-api/swagger-codegen
[JAVA okhttp-gson; target=Android] Gradle Android build Lint error
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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