-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Binary linking is failing #30
Comments
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
I tried with android build ..\Cache\hosted\pub.dev\mercuryjs-0.1.3\android\src\main\java\com\openwebf\mercuryjs\MercuryjsPlugin.java:16: error: class MercuryPlugin is public, should be declared in a file named MercuryPlugin.java
public class MercuryPlugin implements FlutterPlugin, MethodCallHandler {
^
..\Local\Pub\Cache\hosted\pub.dev\mercuryjs-0.1.3\android\src\main\java\com\openwebf\mercuryjs\MercuryjsPlugin.java:24: error: cannot find symbol
private Mercury mMercury;
^
symbol: class Mercury
location: class MercuryPlugin
..\Local\Pub\Cache\hosted\pub.dev\mercuryjs-0.1.3\android\src\main\java\com\openwebf\mercuryjs\MercuryjsPlugin.java:51: error: cannot find symbol
Mercury getMercury() {
^
symbol: class Mercury
location: class MercuryPlugin
..\Local\Pub\Cache\hosted\pub.dev\mercuryjs-0.1.3\android\src\main\java\com\openwebf\mercuryjs\MercuryjsPlugin.java:53: error: cannot find symbol
mMercury = Mercury.get(flutterEngine);
^
symbol: variable Mercury
location: class MercuryPlugin
..\Local\Pub\Cache\hosted\pub.dev\mercuryjs-0.1.3\android\src\main\java\com\openwebf\mercuryjs\MercuryjsPlugin.java:74: error: cannot find symbol
Mercury mercury = getMercury();
^
symbol: class Mercury
location: class MercuryPlugin
..\Local\Pub\Cache\hosted\pub.dev\mercuryjs-0.1.3\android\src\main\java\com\openwebf\mercuryjs\MercuryjsPlugin.java:89: error: cannot find symbol
Mercury mercury = Mercury.get(flutterEngine);
^
symbol: class Mercury
location: class MercuryPlugin
..\Local\Pub\Cache\hosted\pub.dev\mercuryjs-0.1.3\android\src\main\java\com\openwebf\mercuryjs\MercuryjsPlugin.java:89: error: cannot find symbol
Mercury mercury = Mercury.get(flutterEngine);
^
symbol: variable Mercury
location: class MercuryPlugin
..\Local\Pub\Cache\hosted\pub.dev\mercuryjs-0.1.3\android\src\main\java\com\openwebf\mercuryjs\MercuryjsPlugin.java:91: error: cannot find symbol
mercuryjs.destroy();
^
symbol: variable mercuryjs
location: class MercuryPlugin
Note: ..\Local\Pub\Cache\hosted\pub.dev\mercuryjs-0.1.3\android\src\main\java\com\openwebf\mercuryjs\MercuryjsPlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
8 errors
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':mercuryjs:compileReleaseJavaWithJavac'. turns out also unable to build the apk |
Those appear to be Windows paths? What operating system are you using? |
This comment was marked as outdated.
This comment was marked as outdated.
for android testing currently I'm using WIndows, previously for iOS I'm using Mac |
I will try to reproduce your issue on building for Android on Windows @ekkis when he has time can hopefully help with MacOS (I do not have a MacOS environment) |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
@arifinreinaldo It turns out this is a problem when compiling for any platform! It's embarrassing that we missed this! So, it appears that actually using the library as a package installed from pub.dev doesn't work, but it does work within the example project when in the mercury workspace. As it currently stands this means the package can't be used in any project! We will be fixing this soon, apologies for the delay. |
ok, hopefully can be fixed soon. Thanks |
How's this issue coming along? |
Been doing some tinkering, I believe we have some broken Flutter Plugin files, starting tomorrow I'm going to comb through their differences to upstream and attempt to get this resolved within a few days. I also discovered a nasty memory allocation bug in the bridge library that affects Windows, about halfway through that, still getting crashes, will continue to look through upstream fixes. |
A good chunk of the way through this now, those interested can track progress here: #35 |
Hi, thanks for keeping posted about the progress so far. CMIIW, so the fix will be handled in the version 0.2.0? |
Yep |
Hi @MulverineX , Any update for this one? |
I've decided to move to Kotlin Jetpack Compose Multiplatform, and ekkis went back to React Native, so at this point you can consider this library abandoned unfortunately, until/unless someone else picks up development. andycall (the lead developer of webf) has different priorities so its unlikely he'll work on this unless someone commissions him to. This is why this issue is set to help wanted. Apologies to everyone I directed to this project, I hope y'all find a different solution for your app or can find the time to finish this library. If anyone is actually interested in taking over let me know and I can help some. |
step to replicate :
run this code on the Flutter :
tried to do flutter clean faced with new error
The text was updated successfully, but these errors were encountered: