google app engine - Android Studio with AppEngine - Gradle dependencies -


i'm trying simplest example android studio create own backend this tutorial.

backend built , seems it's creating client libraries well.

the server starts , can access localhost:8080

when try build android app now, app cannot find following classes

import com.google.api.client.extensions.android.http.androidhttp; import com.google.api.client.extensions.android.json.androidjsonfactory; import com.google.api.client.googleapis.services.abstractgoogleclientrequest; import com.google.api.client.googleapis.services.googleclientrequestinitializer; 

neither client model (called registration, in sample).

how have setup dependencies of project in gradle, project can find correctly generated client libraries?

currently:

apply plugin: 'android'  android {     compilesdkversion 19     buildtoolsversion '19.1.0'     defaultconfig {         applicationid 'de.unicate.cloudchat'         minsdkversion 19         targetsdkversion 19         versioncode 1         versionname '1.0'     }     buildtypes {         release {             runproguard false             proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.pro'         }     }     productflavors {     } }  dependencies {     compile filetree(include: ['*.jar'], dir: 'libs')     compile 'com.google.android.gms:play-services:4.4.+'     compile 'com.android.support:support-v4:+' } 

shouldn't happen automatically in android studio?

i encountered same problem. added dependencies stack overflow answer.

add these dependencies:

compile ('com.google.api-client:google-api-client-android:1.17.0-rc') {     exclude module: 'httpclient' } compile ('com.google.http-client:google-http-client-gson:1.17.0-rc') {      exclude module: 'httpclient' } 

see this example


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -