If an app includes the "Java-WebSocket" library via gradle (or a module that references it via gradle), then it will fail to build.
Steps to reproduce:
- Create a "Classic" Titanium app project.
- Add the below "build.gradle" to project folder: ./platform/android
- Build for Android.
The following build failure will occur...
Titanium builds with a local "java_websocket.jar" below. It's used by V8 for debugging. We need to remove th JAR and instead reference the library via gradle.
Add the following "build.gradle" to the app project's ./platform/android folder. It will exclude websocket library references from the gradle build to avoid collision with Titanium's local JAR. Although, once we fix this issue, you'll need to remove the below.