When I try to integrate google maps, I get an error - api

I try to integrate google maps in my flutter app, but I get the following error:
The current Flutter SDK version is 1.17.5.
Because restaurant_app depends on google_maps_flutter >=1.0.0 which requires Flutter SDK version >=1.22.0 <2.0.0,
version solving failed. pub get failed (1; Because restaurant_app depends on google_maps_flutter >=1.0.0 which
requires Flutter SDK version >=1.22.0 <2.0.0, version solving failed.)
I have inserted the api key into my `AndroidMainfest.xml` file as it was explained in the instructions.

Related

pub get failed Because circular_slider requires SDK version 2.12.0, version solving failed

I am learning flutter developpment and would like to make an interface using Sleek Circular Slider
When I follow the instruction for adding it in my flutter project, I have an error message when I "pub get". Can you help me please ?
The error message:
The current Dart SDK version is 2.9.1.
Because circular_slider requires SDK version 2.12.0, version solving failed.
pub get failed (1; Because circular_slider requires SDK version 2.12.0, version solving failed.)
Process finished with exit code 1
Here is my YAML file
name: circular_slider
description: A new Flutter project.
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
version: 1.0.0+1
environment:
sdk: ">=2.12.0 <3.0.0"
dependencies:
flutter:
sdk: flutter
sleek_circular_slider: ^2.0.1
cupertino_icons: ^0.1.3
dev_dependencies:
flutter_test:
sdk: flutter
flutter:
uses-material-design: true
It's ok, I uninstalled Flutter and Dart from Android Studio, then reinstalled them and I download and extract the last version of flutter, then replace the c:\flutter directory and everything is ok now

Dart SDK version error when getting dependencies

I'm trying to add the http and image Dart packages. After adding the dependencies in pubspec.yaml and attempt to "Get dependencies", I'm getting the version error.
I have attempted "Check for Update" in IntelliJ, reinstall Flutter and Dart plug in in IntelliJ, redownload Flutter, and ran "flutter upgrade" in Flutter Console, with no luck. It seems the Dart SDK that comes with Flutter has not been updated.
I was able to download later version of Dart SDK independently, but if I just drop the dart-sdk folder of a newer version into the Flutter folder, I get more error still.
How can I update the Dart SDK in the Flutter package, so I can add dependencies?
The reason was flutter console being in the beta channel, causing flutter to not upgrade to latest version. Fix was flutter channel dev then flutter upgrade in console.

no version found com.google.firebase in react-native-fcm

I'm using react native version 0.40, and followed the read me from this repo and i'm getting the following error when I try to run react-native run-android:
could not find any matches for
com.google.firebase:firebase-messaging:+ as no versions of
com.google.firebase:firebase-messaging are available.
I have no clue what is the source for this error. I searched everywhere and I couldn't debug this problem.
I have found the answer, i need to update the android sdk google play services and google repository.
I am using ubuntu with android sdk installed, i type android in console and updated the packages.

Unable to receive full wallet with Google play service v8.4.0 and build tool 23.0.2

I referred to the tutorial on Android Pay on site
Androi Pay integration tutorial
and able to execute it and get the full wallet. This Biker app is compiled with build tool v22.0.1 and Google play services library v8.1.0. But my application requires build tool version 23.0.2 and Google play service library v8.4.0. Full wallet is not received in the Biker application when I do these two modifications to build.gradle:
Build tool from v22.0.1 to 23.0.2
Google play service wallet library from v8.1.0 to v8.4.0
I get result code 1 on activity result when the full wallet is requested.
Also 'Change card/address' button on the wallet fragment fails to respond with these modifications in build.gradle. I have updated the Android SDK. Is there anything I am missing?
Edit 02/16/2016
Now I referred the latest Android Pay source from Github that has latest build tool (v23.0.2) and Google Play services library (v8.4.0). I can't run the application in Android Pay mode as I don't have cards that are supported by Android Pay. I did not find any workaround for introducing mock cards in Android Pay to work with Wallet mode ENVIRONMENT_TEST
After modifying the WalletFragmentStyle to
WalletFragmentStyle walletFragmentStyle = new WalletFragmentStyle()
.setBuyButtonText(BuyButtonText.BUY_WITH_GOOGLE)
.setBuyButtonAppearance(BuyButtonAppearance.CLASSIC)
.setBuyButtonWidth(Dimension.MATCH_PARENT);
I get the same response in onActivityResult with RESPONSE CODE as 1 when requesting for Full wallet. The error number is 10. I am unable to trace what error 10 corresponds to.
You need to click 'Install repository and sync project' after encountering the error. This issue will be fixed after installing all the latest versions of build tools and other updates.

cant download android LVL

I'm having trouble downloading the Licence Verification Library from the android SDK manager.
It's just not there in the list of things to get. I have dl-ssl.google.com as the add-on site. I get a message after the SDK spends a lot of time trying to download the list of possible updates: which ends in addon.xml. For me everything else works in eclispe, I can build apps, run them on the emulator, debug on my actual phone. I have also been able to add more recent android platform sdks to my environment. Am I doing something wrong? Here is the bit from the log:
Fetching ://dl-ssl.google.com/android/repository/addons_list.xml
Validate XML
Fetched Add-ons List successfully
Fetching URL: ://dl-ssl.google.com/android/repository/repository-5.xml
Validate XML: ://dl-ssl.google.com/android/repository/repository-5.xml
Parse XML: ://dl-ssl.google.com/android/repository/repository-5.xml
Found SDK Platform Android 1.1, API 2, revision 1 (Obsolete)
Found SDK Platform Android 1.5, API 3, revision 4
<-- SNIP -->
Found Sources for Android SDK, API 14, revision 1
Found Sources for Android SDK, API 15, revision 1
Found Android Support package, revision 6
Fetching URL: ://dl-ssl.google.com
Validate XML: ://dl-ssl.google.com/addon.xml
Failed to fetch URL ://dl-ssl.google.com/addon.xml, reason: addon.xml
Done loading packages.
I don't know the reason.My eclipse is 3.7(Indigo),and my sdk tool is r16.But in the sdk manager i can't find the library,but when i try to find it in the sdk r17,it's just shown in the download list.Thanks god,i wish it can help you.