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

v2.1.0 causes lint-error #8

Open
shrhdk opened this issue Nov 9, 2019 · 0 comments
Open

v2.1.0 causes lint-error #8

shrhdk opened this issue Nov 9, 2019 · 0 comments

Comments

@shrhdk
Copy link

shrhdk commented Nov 9, 2019

The plug-in which depends on theta-plugin-library v2.1.0 always fails to build for release.

v2.1.0 depends on sanselan-0.97-incubator.jar, and The sanselan references AWT. That causes lint-error because Android system does not contain AWT.

There is abortOnError false option as a workaround, but that is not a good idea.

Error Message

> Task :app:transformClassesWithDexBuilderForRelease

> Task :app:lint
Ran lint on variant release: 3 issues found
Ran lint on variant debug: 3 issues found
Wrote HTML report to ***
Wrote XML report to ***

> Task :app:lint FAILED
> Task :app:mergeExtDexDebug
> Task :app:mergeDexRelease
> Task :app:mergeReleaseJavaResource

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:lint'.
> Lint found errors in the project; aborting build.
  
  Fix the issues identified by lint, or add the following to your build script to proceed with errors:
  ...
  android {
      lintOptions {
          abortOnError false
      }
  }
  ...
  
  Errors found:
  
  ***/.gradle/caches/modules-2/files-2.1/org.apache.sanselan/sanselan/0.97-incubator/***/sanselan-0.97-incubator.jar: Error: Invalid package reference in library; not included in Android: java.awt.color. Referenced from org.apache.sanselan.ColorTools. [InvalidPackage]
  ***/.gradle/caches/modules-2/files-2.1/org.apache.sanselan/sanselan/0.97-incubator/***/sanselan-0.97-incubator.jar: Error: Invalid package reference in library; not included in Android: java.awt.image. Referenced from org.apache.sanselan.ColorTools. [InvalidPackage]
  ***/.gradle/caches/modules-2/files-2.1/org.apache.sanselan/sanselan/0.97-incubator/***/sanselan-0.97-incubator.jar: Error: Invalid package reference in library; not included in Android: java.awt. Referenced from org.apache.sanselan.ColorTools. [InvalidPackage]
  


* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 11s
98 actionable tasks: 47 executed, 51 up-to-date
23:06:03: Task execution finished 'build'.
KATSUYA2 added a commit that referenced this issue Mar 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant