I am uploading an app to Google Play Store in Internal Testing.
Google reported an error and asked me to declare the "android.permission.READ_PHONE_STATE" permission in the AndroidManifest.xml file, but my app doesn't use this permission. There are also a lot of other permissions listed in the list.
This is the pubspec.yaml file.
dependencies:
flutter:
sdk: flutter
flutter_localizations:
sdk: flutter
flutter_cupertino_localizations: ^1.0.1
cupertino_icons: ^1.0.2
path_provider: ^2.0.8
equatable: ^2.0.3
excel:
git: https://github.com/justkawal/excel
shared_preferences: ^2.0.15
connectivity_plus: ^2.2.0
http_parser: ^4.0.0
dio: ^4.0.0
get: ^4.6.1
hive: ^2.2.3
hive_flutter: ^1.1.0
flutter_spinkit: ^5.1.0
shimmer: ^2.0.0
another_flushbar: ^1.10.28
flutter_svg: ^1.0.3
cached_network_image: ^3.1.0
image_picker: ^0.8.1+4
flutter_image_compress: ^1.0.0
geolocator: ^9.0.1
geocoding: ^2.0.2
tutorial_coach_mark: ^1.2.1
jiffy: ^5.0.0
file_picker: ^5.0.1
permission_handler: ^10.0.0
package_info_plus: ^1.4.2
json_annotation: ^4.7.0
control_style: ^0.0.2
timezone: ^0.8.0
flutter_native_timezone: ^2.0.0
rxdart: ^0.27.5
assets_audio_player:
path: plugins/assets-audio-player
flutter_device_type: ^0.4.0
fading_edge_scrollview: ^3.0.0
awesome_notifications: ^0.7.3
intl: ^0.17.0
url_launcher: ^6.1.6
flutter_phoenix: ^1.1.0
video_player: ^2.4.7
simple_shadow: ^0.3.0
timer_controller: ^1.0.0
change_app_package_name: ^1.1.0
firebase_core: ^2.5.0
firebase_crashlytics: ^3.0.12
photo_view: ^0.14.0
I checked the libraries used in the project but still not found these permissions.
I want to know how do I remove these permissions from my app.
Thanks so much!
Related
I updated Flutter to the latest version. And Kotlin, Gradle.
I get an output like this. What is the problem? And pubspec.yaml. This can be more help for you.
name: NAME
description: DESC.
version: 2.5.0+20500
environment:
sdk: ">=2.6.0 <3.0.0"
dependencies:
flutter:
sdk: flutter
flutter_localizations:
sdk: flutter
http: ^0.13.4
flutter_swiper: ^1.1.6
provider: ^6.0.2
get_it: ^7.2.0
cupertino_icons: ^1.0.4
flutter_html: ^3.0.0-alpha.2
flutter_html_all: ^3.0.0-alpha.2
flutter_html_iframe: ^3.0.0-alpha.2
url_launcher: ^6.0.20
shared_preferences: ^2.0.13
share: ^2.0.4
intl: ^0.17.0-nullsafety.2
location: ^4.3.0
google_maps_flutter: ^2.1.1
google_maps_flutter_platform_interface: ^2.1.5
simple_animations: ^4.0.1
pub_semver: ^2.1.0
package_info: ^2.0.2
launch_review: ^3.0.1
onesignal_flutter: ^3.2.8
firebase_core: ^1.10.0
firebase_analytics: ^8.3.4
firebase_auth: ^3.3.7
firebase_database: ^9.0.6
flutter_math_fork: ^0.6.1
webdriver: ^3.0.0
supercharged: ^2.1.1
flutter_svg: ^1.0.3
dev_dependencies:
flutter_test:
sdk: flutter
flutter_launcher_icons: ^0.9.2
change_app_package_name: ^0.1.2
flutter_icons:
android: true
ios: true
image_path: "assets/icon/icon.png"
I get an output like this. What is the problem? And pubspec.yaml. This can be more help for you.
check "null-safety" checks dude.
environment:
sdk:">=2.16.0 <3.0.0
"
I'm developing flutter application and I using below dependencies for my project.
webview_flutter: ^3.0.0
connectivity_plus: ^2.2.0
html: ^0.15.0
sn_progress_dialog: ^1.0.3
http: ^0.13.4
pin_code_fields: ^7.3.0
flutter_barcode_scanner: ^2.0.0
url_launcher: ^6.0.20
datetime_picker_formfield: ^2.0.0
extended_masked_text: ^2.3.1
image_picker: ^0.8.4+8
timelines: ^0.1.0
carousel_slider: ^4.0.0
page_transition: ^2.0.5
provider: ^6.0.2
native_updater: ^0.1.1
flutter_svg: ^1.0.3
dropdown_search: ^2.0.1
flutter_rating_bar: ^4.0.0
expandable: ^5.0.1
crypto: ^3.0.1
device_info_plus: ^3.2.1
dart_ipify: ^1.1.1
qr_code_scanner: ^0.6.1
flutter_jailbreak_detection: ^1.8.0
flutter_secure_storage: ^5.0.2
firebase_messaging: ^11.2.6
firebase_core: ^1.12.0
cloud_firestore: ^3.1.8
flutter_google_places: ^0.3.0
google_directions_api: ^0.9.0
geolocator: ^8.2.0
geocoding: ^2.0.2
google_maps_flutter: ^2.1.1
location: ^4.3.0
flutter_polyline_points: ^1.0.0
permission_handler: ^9.2.0
But in my android folder shows unused dependencies . Anyone can explain this and how to remove this from project ?
Ex:package_info_plus
I am not sure if I am giving the correct answer but, this may be because each flutter package/plugin may depend on others. If you see the device_info_plus on pub.dev you will see its dependencies. See the below image.
I'm trying to build my flutter project but I'm getting this error so I'm just wondering how can I fix this. This happens after adding the Cookie Manager plugin. I can run the app on an emulator and physical device without any problem but it gives me this error when I try to build it.
Podfile
# Uncomment this line to define a global platform for your project
platform :ios, '9.0'
use_frameworks!
pubspec.yaml
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.2
lottie: ^1.2.1
hive: ^2.0.4
hive_flutter: ^1.1.0
flutter_hooks: ^0.16.0-nullsafety.0
hooks_riverpod: ^0.13.1
http: ^0.13.3
flutter_svg: ^0.22.0
flutter_facebook_auth: ^3.5.2
carousel_slider: ^4.0.0
modal_bottom_sheet: ^2.0.0
flutter_html: ^2.1.1
flutter_spinkit: ^5.0.0
jiffy: ^4.1.0
share: ^2.0.4
google_sign_in: ^5.1.1
wp_json_api: ^3.0.0
fluttertoast: ^8.0.8
flutter_tts: ^3.2.2
email_validator: ^2.0.1
onesignal_flutter: ^3.2.7
google_mobile_ads: ^0.13.3
url_launcher: ^6.0.9
sticky_headers: ^0.2.0
flutter_styled_toast: ^2.0.0
flutter_math_fork: 0.4.2+2
persistent_bottom_nav_bar: ^4.0.2
provider: ^6.0.2
path_provider: ^2.0.8
flutter_launcher_icons: "^0.9.2"
webview_flutter: ^2.0.4
webview_cookie_manager: ^2.0.0
shared_preferences: ^2.0.12
How can i fix missing icons in my application after i upgrade from 2.0.1 to Flutter 2.5.3 version.
(We can still press the button of the icons, but the icon it self is missing)
This is my pubspec.yaml
version: 1.0.0+1
environment:
sdk: ">=2.7.0 <3.0.0"
dependencies:
flutter:
sdk: flutter
cupertino_icons: ^1.0.4
intl: ^0.17.0
provider: ^6.0.1
flutter_svg: ^0.23.0+1
connectivity: ^3.0.6
hexcolor: ^2.0.5
path: ^1.8.0
cached_network_image: ^3.1.0+1
get_it: ^7.2.0
qr_flutter: ^4.0.0
http: ^0.13.4
crypto: ^3.0.1
image: ^3.0.8
bitmap: ^0.1.2
sembast: ^3.1.1
path_provider: ^2.0.7
package_info: ^2.0.2
equatable: ^2.0.3
collection: ^1.15.0
android_alarm_manager: ^2.0.2
data_connection_checker: ^0.3.4
flutter_switch: ^0.3.2
image_picker: ^0.8.4+4
email_validator: ^2.0.1
numeric_keyboard: ^1.1.0
dev_dependencies:
flutter_test:
sdk: flutter
# unique_identifier: ^0.0.3
flutter_launcher_icons: ^0.9.2
flutter_icons:
android: "launcher_icon"
ios: false
image_path: "assets/images/icon2.png"
This is the icons (back & search) in 2.0.1
After i upgrade to 2.5.3 the icons is missing in all my app:
This errors shows up on terminal and I have checked everything since yesterday trying to find the duplicated dependencies but I couldn't find it.
This is the error:
Duplicate class com.google.android.gms.measurement.internal.zzik found in modules jetified-play-services-measurement-base-17.5.0-runtime.jar (com.google.android.gms:play-services-measurement-base:17.5.0) and jetified-play-services-measurement-impl-17.4.1-runtime.jar (com.google.android.gms:play-services-measurement-impl:17.4.1)
This is my pubspec.yaml:
firebase_core: 0.5.0
cloud_firestore:
firebase_storage: ^4.0.0
firebase_auth: ^0.18.0
google_sign_in: ^4.5.6
location: 3.0.2
google_maps_flutter: ^0.5.27+3
font_awesome_flutter: 8.4.0
geolocator: ^5.1.2
cupertino_icons: ^0.1.3
appodeal_flutter: ^0.5.0
firebase_messaging: ^7.0.2
intro_slider: ^2.3.3
shared_preferences: ^0.5.12
translator: ^0.1.5
loading: ^1.0.2
permission_handler: ^5.0.1+1
beauty_textfield: ^0.0.1
snaplist: ^0.1.8
image_picker: ^0.6.7+11
geoflutterfire: 2.2.1
path_provider: ^1.6.18
image: ^2.1.18
uuid: ^2.2.2
datetime_picker_formfield: ^1.0.0
share: ^0.6.5+2