Skip to content

Fix Android compatibility issues after Flutter 3.29.0 upgrade - #19

Merged
javaherisaber merged 3 commits into
javaherisaber:masterfrom
mufassalhussain:master
Mar 6, 2025
Merged

javaherisaber merged 3 commits into
javaherisaber:masterfrom
mufassalhussain:master

Conversation

@mufassalhussain

Copy link
Copy Markdown

After Upgrading to latest stable release of flutter 3.29.0, facing error as below:

**C:\Users\XTREME\AppData\Local\Pub\Cache\hosted\pub.dev\open_filex-4.6.0\android\src\main\java\com\crazecoder\openfile\OpenFilePlugin.java:73: error: cannot find symbol
public static void registerWith(PluginRegistry.Registrar registrar) {
^
symbol: class Registrar
location: interface PluginRegistry
1 error

FAILURE: Build failed with an exception.

What went wrong:
Execution failed for task ':open_filex:compileDebugJavaWithJavac'.

@mufassalhussain

Copy link
Copy Markdown
Author

I have fixed the issue, you can use the following as an alternative until release;

open_filex:
git:
url: https://github.com/mufassalhussain/open_filex

@ghost

ghost commented Feb 14, 2025

Copy link
Copy Markdown

Please correct PR title to "Fix support for flutter 3.29.0"

@mufassalhussain mufassalhussain changed the title fix support for flutter 2.29.0 Fix Android compatibility issues after Flutter 3.29.0 upgrade Feb 14, 2025
@mufassalhussain

mufassalhussain commented Feb 14, 2025 via email

Copy link
Copy Markdown
Author

@x3rud

x3rud commented Feb 15, 2025

Copy link
Copy Markdown

When will this fix be merged?

@soufianebenyaala

Copy link
Copy Markdown

When will this fix be merged?

rjahn added a commit to sibvisions/flutter_jvx that referenced this pull request Feb 21, 2025
@berke-ugur-openmind

Copy link
Copy Markdown

I have fixed the issue, you can use the following as an alternative until release;

open_filex: git: url: https://github.com/mufassalhussain/open_filex

Thank you so much, it worked for me.

@GugaLincon

Copy link
Copy Markdown

Thank you.

@iamageo

iamageo commented Feb 24, 2025

Copy link
Copy Markdown

please, merge this! 🙏🏼

@TuyulTronik

Copy link
Copy Markdown

still_waiting

@DarenF-20C

Copy link
Copy Markdown

@javaherisaber , FYI, blocking Android build with Flutter 3.29.0

@oscarshaitan

Copy link
Copy Markdown

I have fixed the issue, you can use the following as an alternative until release;

open_filex: git: url: https://github.com/mufassalhussain/open_filex

Im usign this but openfilex is not opening anything in prod, with the proguard rules on. If I turn off the rueles everythign works
when the rules are one I got the error
PlatformException(error, Attempt to read from field 'long android.content.res.XmlBlock$Parser.mParseState' on a null object reference in method 'int android.content.res.XmlBlock$Parser.getAttributeListValue(java.lang.String, java.lang.String, java.lang.String[], int)', null, java.lang.NullPointerException: Attempt to read from field 'long android.content.res.XmlBlock$Parser.mParseState' on a null object reference in method 'int android.content.res.XmlBlock$Parser.getAttributeListValue(java.lang.String, java.lang.String, java.lang.String[], int)'

I spend 2 days, tryign to sort out this problem with no results so far any ideas?

@jainmohit2001

Copy link
Copy Markdown

Any updates here?

@lucavenir

Copy link
Copy Markdown

hello is anyone there? @javaherisaber

@javaherisaber

Copy link
Copy Markdown
Owner

I'm working on the fix and will ship a new version

@oscarshaitan

Copy link
Copy Markdown

be aware that proguard is somehow striping some files too. just remember that

@javaherisaber
javaherisaber merged commit 5047adf into javaherisaber:master Mar 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.