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

Not incompatibilities androidX #26

Closed
carl1990 opened this issue Dec 1, 2020 · 1 comment
Closed

Not incompatibilities androidX #26

carl1990 opened this issue Dec 1, 2020 · 1 comment

Comments

@carl1990
Copy link

carl1990 commented Dec 1, 2020

when ues androidx ,import this lib build failed with error info :

/Users/Carl/dev_soft/flutter/.pub-cache/hosted/pub.flutter-io.cn/fluttertoast-2.2.11/android/src/main/java/io/github/ponnamkarthik/toast/fluttertoast/FluttertoastPlugin.java:14: 错误: 程序包android.support.v4.content不存在
import android.support.v4.content.ContextCompat;
                                 ^
/Users/Carl/dev_soft/flutter/.pub-cache/hosted/pub.flutter-io.cn/fluttertoast-2.2.11/android/src/main/java/io/github/ponnamkarthik/toast/fluttertoast/FluttertoastPlugin.java:107: 错误: 找不到符号
          Drawable shapeDrawable = ContextCompat.getDrawable(ctx, R.drawable.toast_bg);
                                   ^
  符号:   变量 ContextCompat
  位置: 类 FluttertoastPlugin
2 个错误

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':fluttertoast:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

* 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 15s
Running Gradle task 'assembleDebug'...
Running Gradle task 'assembleDebug'... Done                        15.9s
The built failed likely due to AndroidX incompatibilities in a plugin. The tool
is about to try using Jetfier to solve the incompatibility.
@appdev
Copy link
Owner

appdev commented Apr 16, 2022

采用 dart 原生写的,没有用到平台相关的代码

@appdev appdev closed this as completed Apr 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants