Android building fails after adding Firebase dependencies [invalid package] weborb

Backendless Version (3.x / 6.x, Online / Managed / Pro )

6.0.1

Client SDK (REST / Android / Objective-C / Swift / JS )

ANDROID

Application ID

FF55A111-06AF-7EB1-FFDE-B5B62760CA00

Expected Behavior

Please describe the expected behavior of the issue, starting from the first action.

  1. Build for android after adding dependencies for firebase
  2. Build should work…
  3. Functions added should work…

Actual Behavior

Please provide a description of what actually happens, working from the same starting point.

Be descriptive: “it doesn’t work” does not describe what the behavior actually is – instead, say “the request returns a 400 error with message XXX”. Copy and paste your logs, and include any URLs.

build returns errors:
1.

C:\Users\admin.gradle\caches\modules-2\files-2.1\com.backendless\backendless\6.0.1\5efe186906ae5b0ead2c30621b11989d56cd68d7\backendless-6.0.1.jar: Error: Invalid package reference in library; not included in Android: javax.jms. Referenced from weborb.messaging.v3.Subscriber. [InvalidPackage]

C:\Users\admin.gradle\caches\modules-2\files-2.1\com.backendless\backendless\6.0.1\5efe186906ae5b0ead2c30621b11989d56cd68d7\backendless-6.0.1.jar: Error: Invalid package reference in library; not included in Android: javax.servlet.http. Referenced from weborb.messaging.v3.StreamingSubscriber. [InvalidPackage]

C:\Users\admin.gradle\caches\modules-2\files-2.1\com.backendless\backendless\6.0.1\5efe186906ae5b0ead2c30621b11989d56cd68d7\backendless-6.0.1.jar: Error: Invalid package reference in library; not included in Android: javax.servlet. Referenced from weborb.messaging.v3.StreamingSubscriber. [InvalidPackage]

(It appears that backendless 6.0.1 is causing the error… with weborb.messaging.v3… ??? )
I don’t know how or why…

Reproducible Test Case

Please provide a simple code that could be run in a new clean app and reproduce the issue.

The project is currently configured through GameMaker Studio 2…

Hi @JesterOC!

It looks like Lint task error. Somtimes it can trigger “false positive” errors. In your case listed errors are not exact errors but warnings from Lint task which checks code quality.
For solving this problem you can check related topic on Stackverflow - https://stackoverflow.com/questions/50159255/firestore-invalid-package-reference-in-library

Could you try that solution and write me back about results?

Regards, Andriy

I tried the first answer on that page but i couldn’t get it to work…
…but the 2nd answer worked for me!

I just had to downgrade all InvalidPackage lint errors to warnings…

Thanks for your help :smiley: