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

Warning on android: 'overrides a deprecated API' #26

Open
tejainece opened this issue Jan 11, 2018 · 8 comments
Open

Warning on android: 'overrides a deprecated API' #26

tejainece opened this issue Jan 11, 2018 · 8 comments

Comments

@tejainece
Copy link

Note: C:\Users\seragud\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\flutter_webview_plugin-0.0.9+1\android\src\main\java\com\flutter_webview_plugin\WebviewActivity.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

@lejard-h
Copy link
Collaborator

need investigation, I get the error at compile time but not in Android studio

@mrbm
Copy link

mrbm commented Apr 19, 2018

I am on Studio 3.1.1 on a mac high sierra with:

Flutter 0.2.5 • channel unknown • unknown source Framework • revision bffae21571 (3 weeks ago) • 2018-03-28 12:07:12 -0700 Engine • revision dd6f46c485 Tools • Dart 2.0.0-dev.41.0.flutter-2f68e82526

And I get that same message.

@jparound30
Copy link
Contributor

maybe about this line.

https://github.com/dart-flitter/flutter_webview_plugin/blob/c9033c4181a8564921703f8a7a69e2e6bb4c5889/android/src/main/java/com/flutter_webview_plugin/WebviewManager.java#L62

This API was deprecated at API level 21.
But if it is above API level 21, it is already implemented that uses another API.

I think, there is no problem.

@deju
Copy link

deju commented Jul 26, 2018

@jparound30
so upgrade flutter_webview_plugin to new version?

@samgithub-duplicate
Copy link

I'm not quite sure what the solution to this problem is. I just upgraded to Flutter Preview Release 2 (which also installs DART 2) -- That's when the problem started:

I have the latest version of the plugin. (flutter_webview_plugin: ^0.2.1+2)
Flutter Doctor has no issues found. Should I just ignore the error?

@tiagosito
Copy link

tiagosito commented Nov 8, 2018

I have the same problem,
but this happens only when you install the app, when it is already installed and you are only updating / developing ... this does not happen to me or when you run the flutter clean

Launching lib/main.dart on ASUS Z00AD in debug mode...
Initializing gradle...
Resolving dependencies...
Gradle task 'assembleDebug'...
Note: /Users/tiagosito/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_webview_plugin-0.2.1+2/android/src/main/java/com/flutter_webview_plugin/WebviewManager.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /Users/tiagosito/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_webview_plugin-0.2.1+2/android/src/main/java/com/flutter_webview_plugin/WebviewManager.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
flutter doctor -v
[✓] Flutter (Channel dev, v0.10.2, on Mac OS X 10.13.6 17G3025, locale pt-BR)
    • Flutter version 0.10.2 at /Users/tiagosito/flutter
    • Framework revision d8cbb80206 (13 days ago), 2018-10-26 01:30:21 -0400
    • Engine revision 6c2ade9fa2
    • Dart version 2.1.0-dev.8.0.flutter-bf26f760b1

[✓] Android toolchain - develop for Android devices (Android SDK 28.0.3)
    • Android SDK at /Users/tiagosito/Library/Android/sdk
    • Android NDK at /Users/tiagosito/Library/Android/sdk/ndk-bundle
    • Platform android-28, build-tools 28.0.3
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
    • All Android licenses accepted.

[✓] iOS toolchain - develop for iOS devices (Xcode 10.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 10.1, Build version 10B61
    • ios-deploy 1.9.2
    • CocoaPods version 1.5.2

[✓] Android Studio (version 3.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 29.1.1
    • Dart plugin version 181.5656
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)

[✓] Connected device (3 available)
    • ASUS Z00AD    • 12T456020764MYV                          • android-x86 • Android 5.0 (API 21)
    • Devs iPhone   • 615g7af4e12h3b2f1400n2132a1927634c08afe • ios         • iOS 12.0.1
    • iPhone XS Max • 5F946CFA-53EE-7283-9A94-36C2FFHE70AA     • ios         • iOS 12.1 (simulator)

• No issues found!

@muhammadmateen027
Copy link

Hi Guys,

Facing this issue, don't know how to resolve. Tried a lot of techniques:

Note: /Users/muhammadmateen/Library/flutter-sdk/.pub-cache/hosted/pub.dartlang.org/flutter_webview_plugin-0.3.8/android/src/main/java/com/flutter_webview_plugin/WebviewManager.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Running Gradle task 'assembleRelease'...
Running Gradle task 'assembleRelease'... Done 106.2s
Gradle task assembleRelease failed with exit code 1

@yourshinsuke
Copy link

@fluttercommunity is not google employment?

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

9 participants