Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1. Lint found fatal errors while assembling a release target.
  2.  
  3. To proceed, either fix the issues identified by lint, or modify your build script as follows:
  4. ...
  5. android {
  6. lintOptions {
  7. checkReleaseBuilds false
  8. // Or, if you prefer, you can continue to check for errors in release builds,
  9. // but continue the build even when errors are found:
  10. abortOnError false
  11. }
  12. }
  13.  
  14. There are a number of libraries that duplicate not just functionality of the Android platform but using the exact same class names as the ones provided in Android -- for example the apache http classes. This can lead to unexpected crashes.
  15.  
  16. To solve this, you need to either find a newer version of the library which no longer has this problem, or to repackage the library (and all of its dependencies) using something like the jarjar tool, or finally, rewriting the code to use different APIs (for example, for http code, consider using HttpUrlConnection or a library like okhttp).
  17. Note: This issue has an associated quickfix operation in Android Studio and IntelliJ IDEA.
  18. To suppress this error, use the issue id "DuplicatePlatformClasses" as explained in the Suppressing Warnings and Errors section.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement