Skip to content
This repository has been archived by the owner on Apr 14, 2022. It is now read-only.

方法过时 #18

Closed
zhen7g opened this issue Jun 2, 2020 · 0 comments
Closed

方法过时 #18

zhen7g opened this issue Jun 2, 2020 · 0 comments

Comments

@zhen7g
Copy link

zhen7g commented Jun 2, 2020

/Users/zhen7g/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_webview_plugin-0.3.1/android/src/main/java/com/flutter_webview_plugin/WebviewManager.java:133: 警告: [unchecked] 未经检查的转换
mUploadMessage = uploadMsg;
^
需要: ValueCallback
找到: ValueCallback
/Users/zhen7g/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_webview_plugin-0.3.1/android/src/main/java/com/flutter_webview_plugin/WebviewManager.java:186: 警告: [deprecation] CookieManager中的removeAllCookie()已过时
CookieManager.getInstance().removeAllCookie();
^
/Users/zhen7g/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_webview_plugin-0.3.1/android/src/main/java/com/flutter_webview_plugin/FlutterWebviewPlugin.java:237: 警告: [deprecation] CookieManager中的removeAllCookie()已过时
CookieManager.getInstance().removeAllCookie();
^
3 个警告
/Users/zhen7g/flutter/.pub-cache/hosted/pub.flutter-io.cn/fluttertoast-3.0.3/android/src/main/java/io/github/ponnamkarthik/toast/fluttertoast/FluttertoastPlugin.java:92: 警告: [deprecation] Resources中的getDrawable(int)已过时
shapeDrawable = ctx.getResources().getDrawable(R.drawable.toast_bg);
^
1 个警告
/Users/zhen7g/flutter/.pub-cache/hosted/pub.flutter-io.cn/video_player-0.10.0+2/android/src/main/java/io/flutter/plugins/videoplayer/VideoPlayerPlugin.java:20: 警告: [deprecation] Player中的DefaultEventListener已过时
import com.google.android.exoplayer2.Player.DefaultEventListener;
^
/Users/zhen7g/flutter/.pub-cache/hosted/pub.flutter-io.cn/video_player-0.10.0+2/android/src/main/java/io/flutter/plugins/videoplayer/VideoPlayerPlugin.java:154: 警告: [deprecation] Player中的DefaultEventListener已过时
new DefaultEventListener() {
^
2 个警告

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:transformResourcesWithMergeJavaResForDebug'.

More than one file was found with OS independent path 'META-INF/proguard/androidx-annotations.pro'

  • 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 13s
AndroidX incompatibilities may have caused this build to fail. Please migrate your app to AndroidX. See https://goo.gl/CP92wY.
Finished with error: Gradle task assembleDebug failed with exit code 1

@zhen7g zhen7g closed this as completed Jun 2, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant