Skip to content
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

Warning: SDK processing #1646

Closed
Pawankant87 opened this issue Dec 14, 2024 · 6 comments
Closed

Warning: SDK processing #1646

Pawankant87 opened this issue Dec 14, 2024 · 6 comments
Labels
new issue An issue that hasn't yet been seen from the maintainer

Comments

@Pawankant87
Copy link

Warning: SDK processing. This version only understands SDK XML versions up to 3 but an SDK XML file of version 4 was encountered. This can happen if you use versions of Android Studio and the command-line tools that were released at different times.
C:\Users\mindp\AppData\Local\Pub\Cache\hosted\pub.dev\file_picker-8.1.5\android\src\main\java\com\mr\flutter\plugin\filepicker\FilePickerPlugin.java:257: error: cannot find symbol
if (registrar != null) {
^
symbol: variable registrar
location: class FilePickerPlugin
C:\Users\mindp\AppData\Local\Pub\Cache\hosted\pub.dev\file_picker-8.1.5\android\src\main\java\com\mr\flutter\plugin\filepicker\FilePickerPlugin.java:260: error: cannot find symbol
registrar.addActivityResultListener(this.delegate);
^
symbol: variable registrar
location: class FilePickerPlugin
2 errors

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':file_picker:compileDebugJavaWithJavac'.

Compilation failed; see the compiler error output for details.

  • Try:

Run with --info option to get more log output.
Run with --scan to get full insights.

BUILD FAILED in 36s
Error: Gradle task assembleDebug failed with exit code 1

@Pawankant87 Pawankant87 added the new issue An issue that hasn't yet been seen from the maintainer label Dec 14, 2024
@neel-vaghani
Copy link

I have also face same problem with flutter_3.27.0

@AHED200
Copy link

AHED200 commented Dec 14, 2024

Try to downgrade the version to file_picker: 8.1.4

@TheAnh188
Copy link

TheAnh188 commented Dec 14, 2024

Try to downgrade the version to file_picker: 8.1.4

image
image
I can't downgrade the version even though I changed it in pubspec.yaml

@AHED200
Copy link

AHED200 commented Dec 14, 2024

image

@TheAnh188 Set version number without ^ like this file_picker: 8.1.4

@MrCsabaToth
Copy link

Duplicate of #1643

@miguelpruivo
Copy link
Owner

Closing as dup of #1643

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new issue An issue that hasn't yet been seen from the maintainer
Projects
None yet
Development

No branches or pull requests

6 participants