messaging_example build fails with "error: cannot find symbol setMessageDelegate"
Categories
(GeckoView :: General, defect, P1)
Tracking
(firefox76 fixed)
| Tracking | Status | |
|---|---|---|
| firefox76 | --- | fixed |
People
(Reporter: botond, Assigned: agi)
Details
(Whiteboard: [geckoview:m76])
Attachments
(2 files)
STR
- Build recent mozilla-central for Android
- Run
./mach gradle installWithGeckoBinariesDebugAndroidTest
Actual results
The command fails with:
> Task :messaging_example:compileWithGeckoBinariesDebugJavaWithJavac FAILED
/home/botond/dev/mozilla/refactoring/mobile/android/examples/messaging_example/app/src/main/java/org/mozilla/geckoview/example/messaging/MainActivity.java:64: error: cannot find symbol
session.setMessageDelegate(extension, messageDelegate, "browser");
^
symbol: method setMessageDelegate(WebExtension,MessageDelegate,String)
location: variable session of type GeckoSession
1 error
Expected results
The command succeeds.
| Reporter | ||
Comment 2•5 years ago
|
||
Side note:
- Run
./mach gradle installWithGeckoBinariesDebugAndroidTest
I thought this command was supposed to install the "test runner" application that's needed to run mochitests and such. (The reason I use it is so that I can subsequently run ./mach mochitest with --no-install and not be prompted whether I want to install the test application.)
But it's actually (also) building a messaging_example application? Is it supposed to be doing that?
Comment 3•5 years ago
|
||
./mach static-analysis check-java --outgoing is failure due to this.
(In reply to Botond Ballo [:botond] from comment #2)
Side note:
- Run
./mach gradle installWithGeckoBinariesDebugAndroidTestI thought this command was supposed to install the "test runner" application that's needed to run mochitests and such. (The reason I use it is so that I can subsequently run
./mach mochitestwith--no-installand not be prompted whether I want to install the test application.)But it's actually (also) building a
messaging_exampleapplication? Is it supposed to be doing that?
I think Gradle applies your command to all projects unless one is specified. Try ./mach gradle geckoview:installWithGeckoBinariesDebugAndroidTest
| Reporter | ||
Comment 5•5 years ago
|
||
(In reply to James Willcox (:snorp) (jwillcox@mozilla.com) (he/him) from comment #4)
I think Gradle applies your command to all projects unless one is specified. Try
./mach gradle geckoview:installWithGeckoBinariesDebugAndroidTest
Thanks, that explains why ./mach mochitest without --no-install was succeeding -- it knows to run the more specific command ./mach gradle geckoview:installWithGeckoBinariesDebugAndroidTest. (And now I know too!)
| Assignee | ||
Comment 7•5 years ago
|
||
| Assignee | ||
Comment 8•5 years ago
|
||
Comment 10•5 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/8e5f07a8b0b5
https://hg.mozilla.org/mozilla-central/rev/ef28db75f142
Description
•