im trying to implement the aws api gateway into android studio, but i cannot find the MyApiClient class. Im following the tutorial: here
And in my build.gradle file i have the following imports:
compile 'com.amazonaws:aws-android-sdk-core:2.3.3'
compile 'com.amazonaws:aws-android-sdk-cognito:2.3.3'
compile 'com.amazonaws:aws-android-sdk-s3:2.3.3'
compile 'com.amazonaws:aws-android-sdk-mobileanalytics:2.3.3'
compile 'com.amazonaws:aws-android-sdk-apigateway-core:2.3.3'
compile 'com.amazonaws:aws-android-sdk-cognitoidentityprovider:2.3.3'
compile 'com.amazonaws:aws-android-sdk-ddb:2.3.3'
compile 'com.amazonaws:aws-android-sdk-ddb-mapper:2.3.3'
compile 'com.amazonaws:aws-android-sdk-lambda:2.3.3'
Hope you guys can help!
I think you did not complete the previous steps. From your link, on the top of the page:
In this section, we will outline the steps to use an Android SDK generated by API Gateway of an API. Before proceeding further, you must have already completed the steps in Generate SDKs of an API Using the API Gateway Console.
Generate the SDK of an API first
If you already did , are you sure you followed step 6 correctly?
Related
I'm trying to use the new Awareness API in an app but the only way that I can include it in my code is by using
compile 'com.google.android.gms:play-services:9.2.0'
in my gradle file.
I tried using
compile 'com.google.android.gms:play-services-awareness:9.2.0'
but it doesn't seem to exist.
Does anyone know what the correct compile path for selective compile of the awareness API is?
Thanks in advance.
It actually does exist.
//Awareness API
compile 'com.google.android.gms:play-services-contextmanager:9.2.0'
Today you have to include:
compile 'com.google.android.gms:play-services-awareness:10.2.4'
If you want to know the latest Dependency you can use my web tool called DependencyLookup.
I have an Android project created in Eclipse which uses google play services and Facebook sdk libraries to login through google+ and Facebook. When I import this project to Android Studio and generate an apk, the google+ and Facebook login do not work.
They work fine in the apk generated by Eclipse however. I am not sure what causes this problem, the way use google services has changed in Android Studio and it just requires adding a dependency instead of adding the library. I searched this topic but could not find someone with the same problem. I need to know what changes to make in the project so it works properly.
Any help is highly appreciated.
Current dependencies in the imported project.
dependencies {
compile project(':facebookSDK')
compile project(':googleplayservices_lib')
compile project(':dateTimePickerMaterialLibrary')
compile 'com.google.code.gson:gson:2.4'
compile 'joda-time:joda-time:2.9.2'
compile files('libs/android-async-http-1.4.4.jar')
compile files('libs/universal-image-loader-1.9.4.jar')
}
I am trying to add google play service to my project but it gives me error when I try to edit build (Gradle).
How can I fix it?
In your configuration there some issues.
You are using the wrong build.gradle file.
It is your top-level file.
You should add this line in your app/build.gradle
There is a typo. You are missing the ' at the end of the line compile.
Use an updated version.
For example use:
apply plugin: 'com.android.application'
...
dependencies {
compile 'com.google.android.gms:play-services:8.1.0'
}
Finally refer this official doc for more info.
In versions of Google Play services prior to 6.5, you had to compile the entire package of APIs into your app. In some cases, doing so made it more difficult to keep the number of methods in your app (including framework APIs, library methods, and your own code) under the 65,536 limit.
For example if you need to make only your app aware of location updates add
compile 'com.google.android.gms:play-services-location:8.1.0' only in gradle or if you need only map choose compile 'com.google.android.gms:play-services-maps:8.1.0'.
Please replace
compile 'com.google.android.gms:play-services:3.1.36
with
compile 'com.google.android.gms:play-services:3.1.36'
One thing you can try is Right Click on app open module settings on Dependencies Tab click '+' icon and add there 'com.google.android.gms:play-services:8.1.0' and click search icon and add that dependency,
So i don't want to elaborate what you had done wrong as my colleagues figured it out.I like to say, while playing with Google Play Service
Selectively compile APIs into your executable
In versions of Google Play services prior to 6.5, you had to compile the entire package of APIs into your app. In some cases, doing so made it more difficult to keep the number of methods in your app (including framework APIs, library methods, and your own code) under the 65,536 limit.
For example if you need to make only your app aware of location
updates add compile
'com.google.android.gms:play-services-location:8.1.0' only in gradle
or if you need only map choose compile
'com.google.android.gms:play-services-maps:8.1.0'.
Thank you.
Visit for more.
I am attempting to run some sample Android Pay API code following the guide here:
https://developers.google.com/android-pay/android/tutorial#setup
I'm using the sample Bikestore project provided in the link above. I followed the instructions to setup credentials/client ID for my app:
Google Developers Console
Created an Android Client ID for OAuth 2.0 using SHA1 fingerprint and entering the app's package name.
The app installs/runs successfully on my cell phone (Lollipop), however when attempting to "Login", it displays "An error occurring while contacting Google. Please try again later"
I believe I've found a solution. In the sample project, the following dependencies were defined in build.gradle:
dependencies {
compile 'com.android.support:support-v4:22.2.0'
compile 'com.google.android.gms:play-services-plus:7.8.0'
compile 'com.google.android.gms:play-services-wallet:7.8.0'
}
I added the following line and this seems to have fixed the connection issue:
compile 'com.google.android.gms:play-services:7.8.0'
I am implementing Google plus login system to my android app by following the tutorial of google developer at https://developers.google.com/identity/sign-in/android/sign-in
According to the tutorial, I should implement:
GoogleApiClient.ServerAuthCodeCallbacks
interface to enable server-side API access for the android app. However, 'ServerAuthCodeCallbacks' interface does not exist in the GoogleApiClient library, even in the latest version of the library.
Does anybody have the same issue? Or, am I missing something?
Any input will be greatly appreciated!
See the example implementation on GitHub: github.com/googleplus/gplus-quickstart-android
Your dependency on com.google.android.gms:play-services must be at least of version 7.0.0 (currently latest is version 7.5.0)
Class itself is currently placed in package com.google.android.gms.common.api in Maven sub-dependency play-services-base
So for example like this:
dependencies {
compile 'com.google.android.gms:play-services:7.5.0'
}
Also see current Developer documentation here:
https://developers.google.com/android/guides/setup#add_google_play_services_to_your_project