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;
What am I missing in this case?