Coder Social home page Coder Social logo

getting error on android about fluttertoast HOT 16 CLOSED

aigic avatar aigic commented on August 17, 2024 3
getting error on android

from fluttertoast.

Comments (16)

AlexTeamX avatar AlexTeamX commented on August 17, 2024 1

就这个问题,我找了4个小时!!!

from fluttertoast.

ponnamkarthik avatar ponnamkarthik commented on August 17, 2024 1

@Boehrsi the issue is with dependencies we cannot combine androidx and normal previous dependencies

as a temporary fix use v2.2.3

from fluttertoast.

Boehrsi avatar Boehrsi commented on August 17, 2024 1

Still having the same issue on 2.2.6.

@DFilipeS are you using androidX components somewhere in you app? If yes, you have to use 2.2.5.

from fluttertoast.

JamesChenX avatar JamesChenX commented on August 17, 2024

I solve this problem only by using the version 2.1.5. I have tried other ways, but they all don't solve this problem.

from fluttertoast.

bgetsug avatar bgetsug commented on August 17, 2024

This also caught me by surprise after upgrading. v2.2.3 works for me.

I do not think this plugin should use the AndroidX library (163a6be#diff-7ae5a9093507568eabbf35c3b0665732). There are a number of outstanding issues with Flutter and AndroidX, for example: flutter/flutter#23586

from fluttertoast.

alanppxmw avatar alanppxmw commented on August 17, 2024

v2.2.3 ok.

from fluttertoast.

ponnamkarthik avatar ponnamkarthik commented on August 17, 2024

issue is because of migrating libraries to androidx will fix it soon or i will try to revert it back.

from fluttertoast.

Boehrsi avatar Boehrsi commented on August 17, 2024

Does it work for you @aigic @JamesChenX if you use compilesdkversion 28 in the Android build.gradle file in your Flutter project? I'm currently using that setup together with the latest FlutterToast
version and it's working quite well. @ponnamkarthik sorry I wasn't aware of Flutter vs. AndroidX problems when committing the PR (#45).

from fluttertoast.

ahaboubi avatar ahaboubi commented on August 17, 2024

I'm using compilesdkversion 28 with v 2.25 and it isn't working. Going back to v 2.2.3 works for me.

from fluttertoast.

pojoba02 avatar pojoba02 commented on August 17, 2024

@ponnamkarthik, facing the same issue

from fluttertoast.

rtokun avatar rtokun commented on August 17, 2024

Same for me here basically on flutter starter project (Android Studio), even on 2.2.3.
Compile/Target SDKs 27

from fluttertoast.

ponnamkarthik avatar ponnamkarthik commented on August 17, 2024

Please check v2.2.6

from fluttertoast.

ahaboubi avatar ahaboubi commented on August 17, 2024

2.2.6 works. Thanks!

from fluttertoast.

cikichen avatar cikichen commented on August 17, 2024

import android.support.v4.content.ContextCompat;

no implementation

resolve:

remove

android.useAndroidX=true

android.enableJetifier=true

from fluttertoast.

DFilipeS avatar DFilipeS commented on August 17, 2024

Still having the same issue on 2.2.6.

from fluttertoast.

ponnamkarthik avatar ponnamkarthik commented on August 17, 2024

Hope its fixed

from fluttertoast.

Related Issues (20)

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.