EricssonResearch / EricssonResearch/openwebrtc-android-sdk
InvalidPackage "java.awt.*": Package not included in Android
- Dominant language
- Java
- Stars
- 45
- Forks
- 29
- PR merge metrics
- No merged PRs in 30d
Description
Correctness
InvalidPackage: Package not included in Android
C:\Users\rong.gradle\caches\modules-2\files-2.1\org.mozilla\rhino\1.7R4\e982f2136574b9a423186fbaeaaa98dc3e5a5288\rhino-1.7R4.jar: Invalid package reference in library; not included in Android: java.awt.event. Referenced from org.mozilla.javascript.tools.debugger.ContextWindow.
C:\Users\rong.gradle\caches\modules-2\files-2.1\org.mozilla\rhino\1.7R4\e982f2136574b9a423186fbaeaaa98dc3e5a5288\rhino-1.7R4.jar: Invalid package reference in library; not included in Android: java.awt. Referenced from org.mozilla.javascript.tools.debugger.ContextWindow.
C:\Users\rong.gradle\caches\modules-2\files-2.1\org.mozilla\rhino\1.7R4\e982f2136574b9a423186fbaeaaa98dc3e5a5288\rhino-1.7R4.jar: Invalid package reference in library; not included in Android: javax.swing.event. Referenced from org.mozilla.javascript.tools.debugger.EvalTextArea.
C:\Users\rong.gradle\caches\modules-2\files-2.1\org.mozilla\rhino\1.7R4\e982f2136574b9a423186fbaeaaa98dc3e5a5288\rhino-1.7R4.jar: Invalid package reference in library; not included in Android: javax.swing.filechooser. Referenced from org.mozilla.javascript.tools.debugger.SwingGui.1.
C:\Users\rong.gradle\caches\modules-2\files-2.1\org.mozilla\rhino\1.7R4\e982f2136574b9a423186fbaeaaa98dc3e5a5288\rhino-1.7R4.jar: Invalid package reference in library; not included in Android: javax.swing.table. Referenced from org.mozilla.javascript.tools.debugger.ContextWindow.
C:\Users\rong.gradle\caches\modules-2\files-2.1\org.mozilla\rhino\1.7R4\e982f2136574b9a423186fbaeaaa98dc3e5a5288\rhino-1.7R4.jar: Invalid package reference in library; not included in Android: javax.swing.text. Referenced from org.mozilla.javascript.tools.debugger.EvalTextArea.
C:\Users\rong.gradle\caches\modules-2\files-2.1\org.mozilla\rhino\1.7R4\e982f2136574b9a423186fbaeaaa98dc3e5a5288\rhino-1.7R4.jar: Invalid package reference in library; not included in Android: javax.swing.tree. Referenced from org.mozilla.javascript.tools.debugger.MyTreeTable.
C:\Users\rong.gradle\caches\modules-2\files-2.1\org.mozilla\rhino\1.7R4\e982f2136574b9a423186fbaeaaa98dc3e5a5288\rhino-1.7R4.jar: Invalid package reference in library; not included in Android: javax.swing. Referenced from org.mozilla.javascript.tools.debugger.ContextWindow.
Priority: 6 / 10
Category: Correctness
Severity: Error
Explanation: Package not included in Android.
This check scans through libraries looking for calls to APIs that are not included in Android.
When you create Android projects, the classpath is set up such that you can only access classes in the API packages that are included in Android. However, if you add other projects to your libs/ folder, there is no guarantee that those .jar files were built with an Android specific classpath, and in particular, they could be accessing unsupported APIs such as java.applet.
This check scans through library jars and looks for references to API packages that are not included in Android and flags these. This is only an error if your code calls one of the library classes which wind up referencing the unsupported package.
More info:
To suppress this error, use the issue id "InvalidPackage" as explained in the Suppressing Warnings and Errors section.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.