GithubHelp home page GithubHelp logo

error-the-getter-srethrow-isn-t-defined-for-the-class-assetbundleimageprovider-'s Introduction

Error: The getter 'srethrow' isn't defined for the class 'AssetBundleImageProvider' ⚠️⚠️⚠️

Running "flutter pub get" in componentes...                         0,5s
Your Flutter application is created using an older version of the Android
embedding. It's being deprecated in favor of Android embedding v2. Follow the
steps on https://flutter.dev/go/android-project-migration to migrate your
project.
Launching lib/main.dart on SM J610G in debug mode...
[!] Your app isn't using AndroidX.
    To avoid potential build failures, you can quickly migrate your app by
    following the steps on https://goo.gl/CP92wY .
../../Android/flutter/packages/flutter/lib/src/painting/image_provider.dart:672:7: Error: The getter 'srethrow' isn't defined for the class 'AssetBundleImageProvider'.
 - 'AssetBundleImageProvider' is from 'package:flutter/src/painting/image_provider.dart' ('../../Android/flutter/packages/flutter/lib/src/painting/image_provider.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'srethrow'.
      srethrow;                                                         
      ^^^^^^^^                                                          
                                                                        
                                                                        
_FAILURE: Build failed with an exception.                                
                                                                        
* Where:                                                                
Script '/home/jon/Android/flutter/packages/flutter_tools/gradle/flutter.gradle' line: 896
                                                                        
* What went wrong:                                                      
Execution failed for task ':app:compileFlutterBuildDebug'.              
> Process 'command '/home/jon/Android/flutter/bin/flutter'' finished with non-zero exit value 1
                                                                        
* Try:                                                                  
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
                                                                        
* Get more help at https://help.gradle.org                              
                                                                        
BUILD FAILED in 10s                                                     
Running Gradle task 'assembleDebug'...                                  
Running Gradle task 'assembleDebug'... Done                        11,3s
Exception: Gradle task assembleDebug failed with exit code 1

Solución

me salio este error y lo solucione haciendo lo siguiente

  • me dirigi al archivo que estaba en mi caso en la direccion ../Android/flutter/packages/flutter/lib/src/painting/image_provider.dart como me salia en el error
  • una vez ahi me dirigi a la linea 672 en esa linea estaba escrito lo siguiente: srethrow; error
  • lo que hice fue reemplazarla con: rethrow; solucion
  • hecho esto se soluciono el problema.

Ahora cuando lo ejecuto me sale lo siguiente: ✔️✔️✔️

Your Flutter application is created using an older version of the Android
embedding. It's being deprecated in favor of Android embedding v2. Follow the
steps on https://flutter.dev/go/android-project-migration to migrate your
project.
Launching lib/main.dart on SM J610G in debug mode...
[!] Your app isn't using AndroidX.
    To avoid potential build failures, you can quickly migrate your app by
    following the steps on https://goo.gl/CP92wY .
Running Gradle task 'assembleDebug'...                                  
Running Gradle task 'assembleDebug'... Done                        42,5s
✓ Built build/app/outputs/flutter-apk/app-debug.apk.
Installing build/app/outputs/flutter-apk/app.apk...                19,3s
Waiting for SM J610G to report its views...                         74ms
Syncing files to device SM J610G...                                998ms

Flutter run key commands.
r Hot reload. 🔥🔥🔥
R Hot restart.
h Repeat this help message.
d Detach (terminate "flutter run" but leave application running).
c Clear the screen
q Quit (terminate the application on the device).
An Observatory debugger and profiler on SM J610G is available at:
http://127.0.0.1:46171/TwLAWiE9SLw=/

y eso es todo

error-the-getter-srethrow-isn-t-defined-for-the-class-assetbundleimageprovider-'s People

Contributors

jorhak avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.