i'm developing app in android studio. , want use google maps api, can't use ui configure project settings. tried different instruction add maps, didn't work. have modify somehow build.gradle file? can tell me how? have experience that?
thanks every advice.
if on 0.2 means have google repository , android repository installed(from android sdk: terminal$ android sdk
).
one of them, has google play services. here full build.gradle module:
buildscript { repositories { mavencentral() } dependencies { classpath 'com.android.tools.build:gradle:0.5.+' } } apply plugin: 'android' dependencies { compile 'com.google.android.gms:play-services:3.1.36' } android { compilesdkversion 17 buildtoolsversion "17.0.0" defaultconfig { minsdkversion 8 targetsdkversion 16 } }
notice how(easily) play services can included.
also gradle version 0.5.+ can auto updated!
also important thing, wasted me lot of time minimum sdk version! it must 8 or above, since google play services aren't supported lower versions!
Comments
Post a Comment