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

Please solve this issue #12

Closed
Alihaile opened this issue Jun 22, 2021 · 7 comments · Fixed by #17
Closed

Please solve this issue #12

Alihaile opened this issue Jun 22, 2021 · 7 comments · Fixed by #17

Comments

@Alihaile
Copy link

Note: C:\Flutter\flutter.pub-cache\hosted\pub.dartlang.org\flutter_phone_direct_caller-2.0.0\android\src\main\java\com\yanisalfian\flutterphonedirectcaller\FlutterPhoneDirectCallerPlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

@Alihaile Alihaile changed the title Please solve this error Please solve this issue Jun 22, 2021
@SzymonDziak
Copy link

I'M having the same issues...

`environment:
sdk: ">=2.7.0 <3.0.0"

dependencies:
flutter:
sdk: flutter

The following adds the Cupertino Icons font to your application.

Use with the CupertinoIcons class for iOS style icons.

cupertino_icons: ^1.0.0
google_fonts: ^2.0.0
flutter_bloc: ^6.1.1
pull_to_refresh: ^1.6.4
#intl_phone_field: ^1.4.2
circular_check_box: ^1.0.4
#video_player: ^1.0.1

toast: ^0.1.5

#re arrange listview

reorderableitemsview: ^1.0.0

#video editor

#video_editor: ^1.0.3+1
video_editor: ^1.1.0

#to generate fake username
faker: ^1.3.0

random_words: ^1.0.2
#video_editor: ^1.0.3

#flash
flash: ^1.5.0

#messages packages and database

photo_view: ^0.10.3
cached_network_image: ^2.5.0
shared_preferences: ^2.0.0
#shared_preferences: ^0.5.12+4
cloud_firestore: ^1.0.0
#cloud_firestore: ^0.15.0
#image_picker: ^0.6.7+21
image_picker: ^0.7.0
#firebase_storage: ^6.0.0
firebase_storage: ^8.0.0
firebase_auth: ^1.0.0
#firebase_auth: ^0.19.0+1
#firebase_core: ^0.6.0
firebase_core: ^1.0.0

#pin_code_fields: ^6.1.0

#general
custom_switch: ^0.0.1
#pin_code_text_field: ^1.7.1
#otp_text_field: ^1.0.2
flutter_pin_code_fields: ^1.1.0
#twilio_flutter: ^0.0.5
twilio_flutter: ^0.0.5
uuid: ^3.0.0
#uuid: ^2.2.2

gx_file_picker: ^1.9.0+2

file_picker:

#video_thumbnail: ^0.2.5+1
video_thumbnail: ^0.3.3
#path_provider: ^1.6.28
path_provider: ^2.0.1
path: ^1.7.0
flutter_screenutil: ^5.0.0+2

cached_video_player: ^1.0.3
in_app_purchase: ^0.3.5+1

#notifications
#flutter_local_notifications: ^4.0.1+2
flutter_local_notifications: ^5.0.0
firebase_messaging: ^9.0.0
#firebase_messaging: ^6.0.13

#quizview

quiz_view: ^1.0.3
item_selector: ^0.1.1
multi_select_item: ^1.0.3

#staggerview
flutter_staggered_grid_view: ^0.3.4

timeago:

video_player:

git:

url: https://github.com/sanekyy/plugins.git

ref: caching

path: packages/video_player/video_player

#intl_phone_number_input: ^0.6.0
#international_phone_input: ^1.0.4
flutter_masked_text: ^0.8.0
share: ^0.6.5+4
http: ^0.13.1
#http: ^0.12.1
flutter_rounded_progress_bar: ^0.1.2

font_awesome_flutter: ^9.0.0

flutter_svg: ^0.21.0
#flutter_svg: ^0.19.3

#helper package
helpers: ^1.1.2

video_editor_sdk: ^1.0.1

flutter_cache_manager: ^2.1.0

#intl_phone_number_input: ^0.6.0`

@yanisalfian
Copy link
Owner

@Alihaile can you elaborate? I don't understand what you mean with the issue here.

@murat-ti
Copy link

murat-ti commented Jul 15, 2021

Hi, I face same issue when run next command:

flutter build apk --split-per-abi

It shows:

Note: C:\flutter_2.2.3.pub-cache\hosted\pub.dartlang.org\flutter_phone_direct_caller-2.0.0\android\src\main\java\com\yanisalfian\flutterphonedirectcaller\FlutterPhoneDirectCallerPlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

I upgrade flutter to 2.2.3 version, but nothing changed.

pubspec.yaml:
sdk: ">=2.12.0 <3.0.0"
...
flutter_phone_direct_caller: ^2.0.0

Thanks

@Stratovarius93
Copy link

Hi, I'm using alternative function to open Caller App.

_launchCaller(String number) async {
String url = "tel:$number";
if (await canLaunch(url)) {
await launch(url);
} else {
throw 'Could not launch $url';
}
}

It's work for me. As alternative obiously

@mikiyasET
Copy link

@Alihaile
can you fix this issue am seeing it always when i try to run it
Note: C:\Flutter\flutter.pub-cache\hosted\pub.dartlang.org\flutter_phone_direct_caller-2.0.0\android\src\main\java\com\yanisalfian\flutterphonedirectcaller\FlutterPhoneDirectCallerPlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

@ozz-rjq
Copy link

ozz-rjq commented Sep 2, 2021

The plugin `flutter_phone_direct_caller` uses a deprecated version of the Android embedding.
To avoid unexpected runtime failures, or future build failures, try to see if these plugins support the Android V2 embedding. Otherwise, consider removing them since a future release of Flutter will remove these deprecated APIs.
If you are plugin author, take a look at the docs for migrating the plugin to the V2 embedding: https://flutter.dev/go/android-plugin-migration.

@AlonSerrano
Copy link

>flutter build appbundle
The plugin flutter_phone_direct_caller uses a deprecated version of the Android embedding.
To avoid unexpected runtime failures, or future build failures, try to see if this plugin supports the Android V2 embedding. Otherwise,
consider removing it since a future release of Flutter will remove these deprecated APIs.
If you are plugin author, take a look at the docs for migrating the plugin to the V2 embedding:
https://flutter.dev/go/android-plugin-migration.

Building without sound null safety
For more information see https://dart.dev/null-safety/unsound-null-safety

Note: /Users/luis.serrano/Documents/SDK/flutter_2.5/.pub-cache/hosted/pub.dartlang.org/flutter_phone_direct_caller-2.0.0/android/src/main/java/com/yanisalfian/flutterphonedirectcaller/FlutterPhoneDirectCallerPlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

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

Successfully merging a pull request may close this issue.

8 participants