I have a problem resolving my dependencies and as always the official 
sources lack the details required to solve this problem and/or why certain
things might occur. Online guides have given examples of Eclipse and Maven, 
but since I neither sit with Eclipse or deal with Maven that
often I have no clue what to do.

In my project I would like to use the Google AdWords API, and I'm sitting 
with Android Studio 3.0.1, to do this I have tried the following:


1) Placed the Google API Client (+ Android, just incase) jar files under 
app/libs directory (name.jar + name-sources.jar).


2) The *build.gradle* file, under the *app* directory, have the following 
line under dependencies: *implementation 
'com.google.api-client:google-api-client:1.23.0'*


3) Same gradle file has the following as well, as that seemed to have 
solved a similar issue before:

    android {
        buildTypes {
            debug { ... } // same content...
            release { ... } // ...under both
        }
    }


4) Both build.gradle files (app and project) have the following in their 
respective locations (three different locations):

    repositories {
        jcenter()
        google()
    }


I continue having this problem regardless of what I try, once the third 
bullet above fixed a similar issue however, but not in this case and I 
still get the following:

Unable to resolve dependency for ':app@debug/compileClasspath': Could not 
resolve com.google.api-client:google-api-client:1.23.0. Open File Show 
Details

Unable to resolve dependency for ':app@release/compileClasspath': Could not 
resolve com.google.api-client:google-api-client:1.23.0. Open File Show 
Details


Under my class, as a result of the above, it can not find the following 
(one of many):

import com.google.api.ads.adwords.axis.v201710.cm.AdGroupAdServiceInterface;


I followed this guide for setting up my class: 
https://developers.google.com/adwords/api/docs/samples/java/basic-operations#get-expanded-text-ads


*What am I missing in this case?*

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/0f1185c1-a6c6-43a5-be29-f18c1250494d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • Android Stud... goldenmaza
    • Re: And... 'Dhanya Sundararaju (AdWords API Team)' via AdWords API Forum
      • Re:... goldenmaza
        • ... 'Dhanya Sundararaju (AdWords API Team)' via AdWords API Forum

Reply via email to