All Questions
Tagged with flutter android-studio
4,517 questions
0
votes
0
answers
8
views
Bloc plugin generates empty files often (Flutter)
Maybe anyone knows why the Bloc plugin in the Android Studio generates the empty files when you are creating the new templates?
I tried to invalidate caches, restart IDE, reinstall the bloc plugin.
...
0
votes
0
answers
38
views
How to refactor a string into a ARB resource in Dart/Flutter?
I am working on a legacy Flutter app which does not have translations.
I need to create many resource entries in the ARB file and then replace the text by AppLocalizations.of(context).something.
Is ...
0
votes
0
answers
19
views
Flutter Could not resolve all dependencies for configuration ':app:debugRuntimeClasspath'
While updating my old project from Flutter 2.x.x to 3.29 I am getting this error.
I am using java 17 version.
Flutter version is 3.29. I have updated all packages im my pubspec.yaml file but still ...
0
votes
0
answers
25
views
Flutter inspector can't load and it stucks
Flutter inspector is not loading in one of my projects, it stucks in loading, see attached image.
I tried clearing cache, restarting, still does not work.
It's such a useful feature, debugging UI is ...
0
votes
1
answer
60
views
Android Studio's auto complete is extremely slow in Flutter
Every now and then Android Studio's auto complete became slow and unresponsive, please check attached image, it's loading for a while and usually responds with no result.
There is same problem in ...
1
vote
0
answers
53
views
How to solve Execution failed for task ':notification_permissions:compileDebugJavaWithJavac' [closed]
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':notification_permissions:compileDebugJavaWithJavac'.
Compilation failed; see the compiler error output for ...
2
votes
0
answers
70
views
Change Android studio Java version [duplicate]
Below is part of the output of flutter doctor -v.
Android Studio (version 2024.2) [107ms]
• Android Studio at /home/noor/Documents/Apps/android-studio
• Flutter plugin version 83.0.3
• ...
0
votes
0
answers
92
views
Android Emulator crashes on start up
Last night, everything was working perfectly. This morning, when I tried to start an android emulator via `flutter launch emulator', it immediately crashes:
[ERR] The Android emulator exited with ...
0
votes
1
answer
88
views
is there any solution for this ..? flutter gradle error
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:checkDebugAarMetadata'.
Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
Could ...
0
votes
1
answer
30
views
Flutter Firebase: Google-services.json File Not Found Despite Correct Placement
I am working on a Flutter app that integrates Firebase, but I keep running into the following error during the build process:
Execution failed for task ':processDebugGoogleServices'.
File google-...
1
vote
1
answer
32
views
How to Automate Flutter Device Selection on Android Studio Startup? (Android Studio)
Every time I start Android Studio, I have to go through the same routine:
Moving the mouse to the dropdown menu for Flutter Device Selection
Clicking on "Refresh" so that Flutter Device ...
1
vote
0
answers
58
views
Flutter Doctor Detects Old Android Studio Version Even After Updating
I'm facing an issue where flutter doctor detects an old version of Android Studio (4.2) alongside my latest installation (2024.2).
System Details:
OS: Windows 10 Home (22H2)
Flutter Version: 3.29.0 (...
1
vote
1
answer
505
views
Error building Application: NDK did not have a source.properties file
i believe i have done something wrong during installation a package while writing the code, now every time i try to run the application this shows up
Launching lib\login.dart on AOSP on IA Emulator in ...
1
vote
1
answer
50
views
What should I do? Dart warning: Unnecessary cast. but If I don't do this, my code will fail. its happend when jsonlist convert to List<T>
When I use Flutter(dart) to develop a platform app in Android Studio, I want to encapsulate a general json to any type List tool(_fromJsonList). Below is my lowest level conversion function and type ...
1
vote
2
answers
58
views
can't find the class name "MyApp" in widgets_test.dart file
-> In the above code I am having problem in my widgets_test.dart file where its telling can't find the class name in my above code.
-> But I have changed my code like there is no "MyApp&...
0
votes
2
answers
119
views
Flutter run on Android emulator throws: Could not find an option named "--web-renderer"
When I hit run on my Android Emulator it throws this error:
Could not find an option named "--web-renderer"
Which has nothing to do with compiling and installing an APK. I've been having ...
1
vote
0
answers
388
views
Android Studio Error handling SDK processing. This version only understands SDK XML versions up to 3 but an SDK XML file of version 4
My program versions from flutter terminal:
Flutter 3.27.3 • channel stable •
https://github.com/flutter/flutter.git Framework • revision
c519ee916e (3 weeks ago) • 2025-01-21 10:32:23 -0800 Engine •
...
-1
votes
0
answers
26
views
There was a failure while populating the build operation queue: Failed to create MD5 hash for file content
Need your help. I'm getting this error when running my app:
**Execution failed for task ':flutter_share:parseDebugLocalResources'.
There was a failure while populating the build operation queue: ...
1
vote
0
answers
22
views
Adjust size of console, terminal, etc in Android Studio
How can I adjust the size of the console, specifically the "space" where "Run" and the file name appear? It looks super huge and wastes really useful space:
I tried searching and ...
0
votes
1
answer
80
views
Android Studio: AndroidManifest not found
I am tryint to run a sample project in Android Studio. Running "Flutter doctor" in terminal everything seems OK. I believe I have installed all the necessary SDK Tools.
I get this error when ...
2
votes
2
answers
199
views
Where can I download prior versions of Android Studio?
I'm currently using
Android Studio Koala Feature Drop | 2024.1.2
Build #AI-241.18034.62.2412.12266719, built on August 22, 2024
Runtime version: 17.0.11+0--11852314 amd64
VM: OpenJDK 64-Bit Server VM ...
1
vote
0
answers
49
views
Updated Flutter version and then every time I run flutter app, sometimes my pc crashes. Experienced this since flutter upgrade
I am developing flutter app and then the flame requires me to upgrade my flutter version and then after that everything seems smooth. After changing parallax image, my pc crashes and I already updated ...
0
votes
1
answer
53
views
Emulator not launching in Flutter development environment
Launching lib\main.dart on sdk gphone64 x86 64 in debug mode...
Running Gradle task 'assembleDebug'...
warning: [options] source value 8 is obsolete and will be removed in a future release
warning: [...
0
votes
0
answers
16
views
Flutter Submodules Cause Dart Files to Be Unrecognized in Android Studio
Issue:
I have a Flutter project with git submodules, and Android Studio does not recognize Dart files when I open the project. The issue happens across multiple versions of Android Studio (both ...
0
votes
1
answer
77
views
Flutter:- MainActivity.kt:4:8 Unresolved reference: io
I'm getting the below issue.
Running Gradle task 'assembleDebug'...
e: file:///Users/technologies/Documents/MyComputer/project_git/android/app/src/main/kotlin/com/example/testproject/MainActivity.kt:4:...
0
votes
0
answers
58
views
How to merge table rows in Flutter
i want to show a table like the one in the image :
i found some widgets i can use like Table and Datatable but none of them give me the possibility to merge the columns like shown in he picture for ...
4
votes
0
answers
508
views
Getting google api headers & flutter_facebook_auth dependencies error
Getting these errors on my code. Tried upgrading the dependencies of google_api_headers & facebook, but the issue continues.
Current dependencies - google_api_headers: ^1.0.0,
...
0
votes
0
answers
61
views
Android Studio and the command-line tools were released at different times
Every time I start a project, I get this warning in the console.
Warning: SDK processing. This version only understands SDK XML versions up to 3 but an SDK XML file of version 4 was encountered. This ...
1
vote
0
answers
76
views
Android Studio "Sync project with Gradle files" is missing
in my flutter project I cannot open a file in design editor, it says: "Design editor is unavailable until next Gradle sync."
So I looked the error up, and it seems, that I have to manually ...
0
votes
1
answer
70
views
A failure occurred while executing com.android.build.gradle.internal.tasks.DexFileDependenciesTask$DexFileDependenciesWorkerAction
PLEASE IF anyone can help me fix this errors i tried alot of things in android studio i have jdk 20 and gradle 8.3 i tried run the app using vs code and still the same errors please if anyone can ...
0
votes
1
answer
114
views
"Unsupported class file major version 65" After Android Studio Upgrade
I am trying to run my Flutter app on the Android emulator, but the Gradle build fails with the following error:
Launching lib/main.dart on sdk gphone64 x86 64 in debug mode...
FAILURE: Build failed ...
0
votes
0
answers
37
views
Android Studio doesn't recognize monorepo available dependencies in Flutter project
I have an issue where Android Studio does not recognize available dependencies of monorepo packages. Simply put, I must add all dependencies imports by hand because IDE does not suggest them. Either ...
0
votes
0
answers
23
views
error when i click on run in android studio with flutter
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:parseDebugLocalResources'.
Could not resolve all files for configuration ':app:androidApis'.
Failed to ...
0
votes
1
answer
65
views
Android Studio JDK doesn't detect downloaded JDK
When changing the default Gradle JDK for Android Studio, it does not detect the JDK I downloaded, which is JDK 17. It keeps on using JetBrains Runtime 21.0.5.
enter image description here
I added the ...
0
votes
0
answers
89
views
Google Mobile Ads causing obsolete warnings
I am currently testing Google Mobile Ads in a test app. Everything was working fine until I added Google Mobile Ads to my project.
Now I get the following warnings when I try to run my app:
warning: [...
1
vote
2
answers
254
views
Flutter gen-l10n does not generate localization files
I’m trying to generate localization files in my Flutter project using flutter gen-l10n, but it doesn’t seem to work. I keep getting the error after running flutter gen-l10n:
Attempted to generate ...
4
votes
3
answers
969
views
Flutter app shows black screen only on Android platform-specific devices (like Oppo Reno 3 Pro)
I’m facing an issue with my Flutter app only on Android devices. Specifically, when I install and launch the app on my Oppo Reno 3 Pro, all I see is a black screen. However, if I tap randomly on the ...
0
votes
1
answer
88
views
Unable to run the Flutter application after Android Studio update
I have recently updated my Android Studio from Koala to Ladybug and started facing this gradle issue. I have also updated my JDK version to JDK 17. Please help.
FAILURE: Build failed with an exception....
0
votes
0
answers
24
views
IOS and Android files not showing up on Android Studio; using Flutter/Dart
I installed everything perfectly, flutter doctor is up and running and i even used flutter create --platforms=android,ios [PROJECT] but nothing worked (i have both java and gradle up to dateenter ...
0
votes
1
answer
93
views
Flutter phone_direct_caller is not usable in my project
When I want to use flutter_phone_direct_caller I got this error:
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':flutter_phone_direct_caller'.
>...
-1
votes
1
answer
33
views
flutter bug with Url laucher
android studio
Can someone help with this bug please!..., This bug happed after i installed Url_laucher library from flutter.dev. Thank you for your kindness!
I am using Java version 23. i try to ...
0
votes
0
answers
43
views
Flutter hot reload not working on Google Pixel 9 pro physical device
I'm developing a Flutter app in Android Studio and I'm using my physical Pixel 9 pro for usb debugging. When I launch the app on my device everything goes fine, however when clicking on the hot reload ...
1
vote
2
answers
306
views
getting this error, while try to run the flutter project
I've installed the Flutter SDK and Android Studio, and I've set everything up. However, when I try to run the project, I'm facing this error.
Flutter Version: 3.27.1
Java Version: 17.0.3
Error ...
0
votes
1
answer
72
views
Build Tool not found after creating a new Flutter project
I created a new Flutter project. After I ran it it gave me the following error.
Launching lib\main.dart on SM A127F in debug mode...
Running Gradle task 'assembleDebug'...
Warning: SDK processing. ...
0
votes
1
answer
35
views
Dynamic dimensions using Dart is not applying changes in smaller pixels
I'm working with a Flutter project and I want to set a dynamic dimensions that will work on different sizes of devices. But I'm having some trouble since its not really applying the changes. Maybe my ...
0
votes
0
answers
22
views
my flutter project running on chrom (web javascript ) but i cant run in android emulator
Launching lib\main.dart on Infinix X6711 in debug mode...
You are applying Flutter's app_plugin_loader Gradle plugin imperatively using the apply script method, which is deprecated and will be removed ...
0
votes
1
answer
41
views
Flutter somehow thinks I'm on macOS even though I'm on Windows
I'm using Android studio on my windows and running flutter doctor responds with
flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.27.1, on ...
0
votes
0
answers
59
views
JAVA_HOME is set to Invalid Directory on Android Studio 2024
Currently working on a flutter project and getting this error:
ERROR: JAVA_HOME is set to an invalid directory: /Library/Java/JavaVirtualMachines/jdk-21.jdk/Contents/Home
Please set the JAVA_HOME ...
1
vote
0
answers
48
views
Android Studio emulator shutting down my system?
I have installed the virtual device emulator in my system and i have enough specifications in my system to run like 24GB RAM, 3TB SSD, i9 9900k, and RTX 3070ti.
But still if i open the emulator and ...
0
votes
2
answers
87
views
How to switch flutter project on Android studio 2021.2.1 from my windows machine to android studio ladybug on my mac through Git Hub without issues
I am making an app I plan to release on iPhone and Android in this coming year. I have been trying to switch the code onto my new Mac and on Android Studio Ladybug, but no matter what I do, I cannot ...