thagikura/mobile-backend-starter-android-client-with-AndroidStudio

com.google.cloud.backend:mobilebackend:v1-1.19.0-SNAPSHOT

ahitchen opened this issue · 4 comments

Fail to find: com.google.cloud.backend:mobilebackend:v1-1.19.0-SNAPSHOT

I don't know enough about android to troubleshoot this issue, sorry.

Hi,

Please try the following as instructed in README

In Android Studio, select MobileBackend module, then generate the client libraries (Tools -> Google Cloud Tools -> Install Client Libraries).

I also got this error. When I select the MobileBackend Module and then click on Tools -> Google Cloud Tools "Install Client Libraries" does not show up in Android Studio (0.8.9).

I fixed this by calling appengineEndpointsInstallClientLibs manually from the gradle console.
At first this still failed because gradle could not resolve com.google.cloud.backend:mobilebackend:v1-1.19.0-SNAPSHOT.
So what i finally did to make it work was:

  1. Comment out following lines in mobile-backend-starter-android-client-core's build.grade:
    /*
    compile('com.google.cloud.backend:mobilebackend:v1-1.19.0-SNAPSHOT') {
    exclude(group: 'org.apache.httpcomponents', module: 'httpclient')
    }
    */
  2. Switch to the MobileBackend module directory and execute:
    ./gradlew appengineEndpointsInstallClientLibs in a terminal
  3. Uncomment the compile lines of 1.)

Looks like how to specify a backend module from Android Studio has changed.

In this PR, adopted the build.gradle conforms to the recent change.
#16

It should build from Android Studio now without a manual hack.

Thx, works perfectly now 👍