Questions tagged [flutter-android]

304 questions
6
votes
1 answer

Unable to open downloaded file in Android for flutter_downloader

I am trying to download a dummy .mp4 (or any file) through flutter_downloader. Here is my code snippet void mobileDownload(filename) async { final status = await Permission.storage.request(); if (status.isGranted){ //user grants download…
Malice
  • 181
  • 2
  • 13
5
votes
6 answers

Flutter : Could not load compiled classes for build file '...\android\build.gradle' from cache

Run without debugging: A problem occurred configuring root project 'android'. > Could not load compiled classes for build file 'D:\FLUTTER\task_manager\android\build.gradle' from cache. Stacktrace: A problem occurred configuring root project…
user1543784
  • 271
  • 2
  • 4
  • 19
5
votes
3 answers

How to `flutter run` with target device as android?

I have my flutter app built and running on macOS using the following command. flutter run This is great. Now, I want to run my app on an Android device. It has developer mode enabled and getting recognised when I run adb devices. I have also run…
TheWaterProgrammer
  • 7,055
  • 12
  • 70
  • 159
4
votes
2 answers

Flutter : Ask the user for permission until permission is granted

Using https://pub.dev/packages/permission_handler to get permissions but it won't ask the user again if user denied permission. currently checked it on android (iOS device is not available) Pls Help
4
votes
0 answers

Flutter android TV button not clickable even after focused

I have a working Flutter application with simple registration form. I tried to install this in Android TV. And able to see it is running with TV related configurations in android manifest. The button is not clickable even after providing the focus.…
Raghu Mudem
  • 6,793
  • 13
  • 48
  • 69
4
votes
1 answer

Flutter's TextPainter throws an '!_needsLayout': is not true.' exception

I try to use a TextPainter to get the maximum length of a string in a Text Widget, but if I call the painter, it will throw an !_needsLayout': is not true. exception. Exception The following assertion was thrown building FeedPage(dirty,…
Tobonaut
  • 2,245
  • 2
  • 26
  • 39
4
votes
1 answer

image_picker crash in android app - Flutter App

First of all, I tried this answer but the issue still going, and I tried it on the new emulator, on a real device but I couldn't fix it. And it works on IOS successfully. Okay let's look issue: First step is working, so going to the gallery I am…
3
votes
0 answers

Adding multiple flutter library modules fails build with duplicate class

Fail log gw assembleDebug --scan > Task :app:checkDebugDuplicateClasses FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:checkDebugDuplicateClasses'. > A failure occurred while executing…
3
votes
1 answer

flutter build apk --release build the apk file but it give error after installing on Android

I have converted google website into Web app for android using webview_flutter: ^1.0.7 package when I run the code in my physical device by making it external emulator the app work perfectly but when I build the APK using flutter build apk…
3
votes
0 answers

How to implement Certificate Transparency for Flutter

I want to implement Certificate Transparency for Flutter on both iOS and Android but without success, can anyone help me with a Flutter example? I could not find any article or package on https://pub.dev/ Thanks in advance!
3
votes
4 answers

Execution failed for task ':location:compileDebugKotlin'

Execution failed for task ':location:compileDebugKotlin'. Running Gradle task 'assembleDebug'... e: /Users/apple/.pub-cache/hosted/pub.dartlang.org/location-4.3.0/android/src/main/java/com/lyokone/location/FlutterLocationService.kt: (124, 1): Class…
Dark_Clouds_369
  • 658
  • 1
  • 6
  • 24
3
votes
0 answers

Flutter native android transitive dependencies conflict (Duplicate class)

projects pubspec.yaml name: talebs description: A new Flutter project. publish_to: "none" version: 11.3.1+11.3.1 environment: sdk: ">=2.12.0 <3.0.0" dependencies: animations: ^2.0.1 appsflyer_sdk: ^6.4.0 auto_size_text:…
3
votes
1 answer

Flutter Android TV app is rejected because "crashes after launch" but it works correctly on the emulator and android tv. Do you have any suggestions?

I have published an app for Android TV. The app works correctly on the emulator and android tv I don't see any errors. The result of the check from Play Store is: Eligibility issues by version Crashing after launchYour app crashes after launch,…
Rajesh
  • 624
  • 13
  • 20
3
votes
2 answers

Flutter in_app_purchase not loading on Android

I do use : https://pub.dev/packages/in_app_purchase The following code work perfectly on IOS real device but it cannot connect to Google Play store on Android. IOS : working perfectly Android : Stuck on line final bool available = await…
Jason Simard
  • 103
  • 5
  • 18
3
votes
2 answers

calling setState from the parent widget in flutter does not update the state

Parent Widget class _FamilyListPageState extends State { String initialValue = 'Search Families'; void eraseInitialValue() { <-------------- This function is passed down to the child widget setState(() { …
1
2
3
20 21